paid.sort_values(by="Reviews", ascending=False, inplace=True) paid.drop_duplicates(subset="App", keep="first", inplace=True, ignore_index=True) print(paid.duplicated("App").sum())
What I expected to happen:
I expected this would sort
paid by the
Reviews column, drop duplicates, resetting the index, and then I’d
What actually happened:
TypeError:drop_duplicates() got an unexpected keyword argument 'ignore_index'
When I looked at the documentation, it seemed to indicate that the
ignore_index would reset the index. However, apparently it’s not even a recognized keyword. I know that Pandas was upgraded to 1.0.0 back at the end of January. Is the
ignore_index keyword new?
Just checked the January 29, 2020 Release Notes for 1.0.0. Turns out that
ignore_index is indeed a new addition. Glad to know I’m not crazy.