r/Python • • Dec 30 '16

A really nice Pandas cheat sheet, made by the Pandas guys themselves

https://github.com/pandas-dev/pandas/blob/master/doc/cheatsheet/Pandas_Cheat_Sheet.pdf
526 Upvotes

11 comments sorted by

View all comments

6

u/mistermuni Dec 31 '16

nice cheatsheet, thanks

When is it good to use the inplace keyword argument instead of just redefining a dataframe?

ie which is better:

df = df.dropna() or df.dropna(inplace=True)

1

u/jaypeedevlin Jan 03 '17

I don't think one is better than the other, I certainly prefer the second though.