show the rows that the “nl10301” greater than or equal to 77 in python

If you have a pandas dataframe called df and want to show the rows where the column nl10301 is greater than or equal to 77 you can use the following code:

main.py
import pandas as pd

df[df["nl10301"] >= 77]
45 chars
4 lines

This will return a new dataframe with only the rows where the condition is met.

related categories

gistlibby LogSnag