Selecting rows in Pandas using .loc and lambda

Опубликовано: 06 Ноябрь 2023
на канале: Python and Pandas with Reuven Lerner
1,113
44

.loc provides us with many ways to select rows and columns from a Pandas data frame. But did you know that you can use lambda to select rows, as well? This can come in handy in a variety of cases, including when you have a long, complex chain of methods in your query. In this video, I show you the basics of using lambda to select specific rows — including an explanation of what "lambda" does for the uninitiated.