Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove rows from pandas

df = df[df["column_name"].isin([0, 1, 3, 4])]
# into isin we put the value we want to mantain
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #rows #pandas
ADD COMMENT
Topic
Name
7+4 =