-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Reduce usage of private pandas attributes #576
Comments
I will need help from someone in Pandas to appease the requirement. @jbrockmendel , this happens within
The intent is to produce a categorical index where the set of category codes is a mutable array and the categories can be set without having to first parse a set of values. |
a couple options:
|
tentative Categorical.empty
|
About this specific code snippet:
that can also be written as:
without the use of private APIs. And I think the only reason you need the |
Thanks @jorisvandenbossche ! So this involves no copies, right? I think for fastparquet's use, |
Correct. @jorisvandenbossche 's snippet should have better compatibility with older pandas versions than the one I posted. |
When running the dask upstream tests in dask/dask#7441 for example you can see that fastparquet sets
_code
. This is not supported in the dev version of pandas. There is a ticket (pandas-dev/pandas#40580) to add a FutureWarning in pandas and deprecate this more intentinonally, but fastparquet should find a way to not use._code
to constructCategorical
s.The text was updated successfully, but these errors were encountered: