Skip to content

Fix set_categories deprecation in 09_tabular.ipynb and clean/09_tabul…#675

Open
OmarElghamry1 wants to merge 1 commit intofastai:masterfrom
OmarElghamry1:fix-set-categories-pandas
Open

Fix set_categories deprecation in 09_tabular.ipynb and clean/09_tabul…#675
OmarElghamry1 wants to merge 1 commit intofastai:masterfrom
OmarElghamry1:fix-set-categories-pandas

Conversation

@OmarElghamry1
Copy link

original: df['ProductSize'].cat.set_categories(sizes, ordered=True, inplace=True)

after:
df['ProductSize'] = df['ProductSize'].cat.set_categories(sizes, ordered=True)

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant