Answers for "pandas select some rows"

13

how to get a row from a dataframe in python

df.iloc[[index]]
Posted by: Guest on May-15-2020
0

select only some rows pandas

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

Python Answers by Framework

Browse Popular Code Answers by Language