0

This is frustrating me to no end --

I have a data frame called FINAL that looks like this

Match Type     Suffix     
0              NaN        
1              NaN        
2              NaN        
3              Exact                  
4              Exact   

I want to get rid of all the NAN data using this:

final.dropna() 

and this

final['Suffix'].dropna()

neither of them work! What am I missing!

1 Answer 1

1

All of those operations return copies. You can either reassign the variable:

final = final.dropna() 

Or pass inplace=True:

final.dropna(inplace=True) 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.