I am the Co-Founder of The Data Monk. I have a total of 6+ years of analytics experience
3+ years at Mu Sigma
2 years at OYO
1 year and counting at The Data Monk
I am an active trader and a logically sarcastic idiot :)
Follow Me
df = pandas.DataFrame({A:[1,2,NaN], B:[NaN,2,3] })
Let this be your dataframe….
To remove null values from a column you can use dropna function
df.dropna(axis =0) # This will remove all the rows which have null values
df.dropna(axis =1) # This will remove all the columns which have null values
Answer ( 1 )
df = pandas.DataFrame({A:[1,2,NaN], B:[NaN,2,3] })
Let this be your dataframe….
To remove null values from a column you can use dropna function
df.dropna(axis =0) # This will remove all the rows which have null values
df.dropna(axis =1) # This will remove all the columns which have null values