Open in app
Curt Beck
167 Followers
About

Sign in

167 Followers
About
Open in app
Curt Beck

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)")

How to Write All of Your SQL Queries in Pandas
314
4

Terence Shin

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

More From Medium

Trump Couldn’t Save the Manufacturing and Energy Industry? It’s Time for a Different Approach.

Curt Beck in DataDrivenInvestor

Getting To Grips With Functions In Python

Curt Beck in Python in Plain English

Predicting the Stock Market is Hard: Creating a Machine-Learning Model (Probably) Won’t Help

Curt Beck in Towards Data Science

Don’t let the Tech Sell-off Fool You. Tech Stocks are Here to Stay

Curt Beck in DataDrivenInvestor

Is There a Relationship Between Google Search and the Price of Bitcoin and What Might It Mean?

Curt Beck in The Startup

Quickly Spot the Next Big Company with Python

Curt Beck in Analytics Vidhya

Quickly Find Motley Fool Stock Picks with Python

Curt Beck in Python in Plain English

Add Some Style to your Pandas DataFrame

Curt Beck in Python in Plain English

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store