Skip to content
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

CLN/DEPR: remove Block._holder, deprecated Block.is_categorical #40571

Merged
merged 3 commits into from Mar 23, 2021

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jbrockmendel jbrockmendel added Deprecate Functionality to remove in pandas Internals Related to non-user accessible pandas implementation labels Mar 23, 2021
@jreback jreback added this to the 1.3 milestone Mar 23, 2021
@@ -227,7 +218,13 @@ def _can_hold_na(self) -> bool:
@final
@property
def is_categorical(self) -> bool:
return self._holder is Categorical
warnings.warn(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there something that actually tests this warning?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, its a DeprecationWarning, just for eg pyarrow

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right but shouldn't we assert it

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ping on green

@jbrockmendel
Copy link
Member Author

ping

@jreback jreback merged commit 2019e7b into pandas-dev:master Mar 23, 2021
@jbrockmendel jbrockmendel deleted the ref-less-blocks branch March 23, 2021 18:17
@jorisvandenbossche
Copy link
Member

no, its a DeprecationWarning, just for eg pyarrow

Small correction: for fastparquet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants