DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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 chrisalbon.com #
PREVIOUS
NEXT
Tagged:
#remove
#rows
#pandas
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit