-
-
Notifications
You must be signed in to change notification settings - Fork 141
Support DataFrame.astype('category')
#559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I don't think my test is testing the right thing, since it passed (locally) before I added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test in test_frame.py:test_astype
that tests DataFrame.astype("category")
and DataFrame.astype(CategoricalDtype())
since that was the original report (i.e., category didn't work for DataFrame
)?
DataFrame.astype('category')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @zmoon
Thanks @Dr-Irv for your help! |
* Add test for Series as CategoricalDtype * Add `CategoryDtypeArg` to `AstypeArg` * Apply review suggestions * Add test for `DataFrame.astype('category')`
DataFrame.astype('category')
currently not supported #558assert_type()
to assert the type of any return value