DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Python - Drop row if two columns are NaN
df.dropna(subset=[1, 2], how='all') Or df.dropna(subset=[1, 2], thresh=1)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Python
#Drop
#row
#columns
#NaN
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit