Answers for "how to remove rows depending on the column value amount is 1 in pandas dataframe"

1

delete rows with value in column pandas

df = df[df.line_race != 0]
Posted by: Guest on April-07-2020
0

delete df rows where column value = 0: mult col's

df.loc[(df[['a', 'b']] != 0).all(axis=1)]
Posted by: Guest on August-02-2021

Code answers related to "how to remove rows depending on the column value amount is 1 in pandas dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language