DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
drop duplicate rows pandas except nan
df[(~df.duplicated()) | (df['col'].isnull())]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#drop
#duplicate
#rows
#pandas
#nan
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit