Curt Beck
Nov 16, 2020

--

Very helpful article!

For all you SQL lovers out there, pandas has a "query" function which allows you to filter a dataframe like you would a SQL table. For example,

df.query("column1 >= 5 and column2 == 10 or column3 in (1,2,3)")

--

--

Curt Beck
Curt Beck

Written by Curt Beck

Stumbled into a data-centric role several years ago and have not looked back! Passionate about leveraging technology to uncover answers and improve the world.

No responses yet