Answers for "grabbing only certain rows in dataframe"

1

select specific rows from dataframe in python

select_color = df.loc[df['Color'] == 'Green']
Posted by: Guest on December-03-2020
0

select only some rows pandas

df.loc[df['column_name'].isin(some_values)]
Posted by: Guest on April-23-2020

Code answers related to "grabbing only certain rows in dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language