Answers for "dropping nan rows"

5

dropping nan in pandas dataframe

df.dropna(subset=['name', 'born'])
Posted by: Guest on April-27-2020
0

remove a rows in which three column has nan

df.dropna(subset=['col1', 'col2', 'col3', 'col4', 'col5', 'col6'], how='all', inplace=True)
Posted by: Guest on April-16-2021

Code answers related to "dropping nan rows"

Python Answers by Framework

Browse Popular Code Answers by Language