Answers for "drop rows with certain value"

1

drop a row with a specific value of a column

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

drop rows with certain values pandas

#to drop rows based on certain condition in a column
import pandas as pd

df = df[df['column']!=1]
Posted by: Guest on January-04-2022

Code answers related to "drop rows with certain value"

Python Answers by Framework

Browse Popular Code Answers by Language