Search
 
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
Name
1+9 =