Nov. 6, 2023, 2:41 p.m. | Python and Pandas with Reuven Lerner

Reuven Lerner www.youtube.com

.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.

cases data lambda loc pandas

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Lead Data Modeler

@ Sherwin-Williams | Cleveland, OH, United States