Skip to content

CLN: fix and move using_copy_on_write() helper out of internals #50675

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

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

jorisvandenbossche
Copy link
Member

I initially added this helper function just to the BlockManager internals in #49771, but since then it seems we also started to use it outside of the internals. Which I think is a good change for a check that we will have to do often on the short term (it makes it more convenient to do this check, see the improvement in the diff where I changed existing get_option(..) calls).
But, 1) the current function was only meant for internal usage and was incorrect for usage outside of the BlockManager (it also needs to check for the manager option) -> fixed that, and 2) moved it outside of the internals, so we don't have to import it from the internals in other parts of pandas.

Copy link
Member

@phofl phofl left a comment

Choose a reason for hiding this comment

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

Thx, I like that.

Should we merge this now? Would have to adjust all our PRs afterwards.

@jorisvandenbossche
Copy link
Member Author

Should we merge this now? Would have to adjust all our PRs afterwards.

If that's OK for you, I would maybe merge this first?
(we could also first merge the other PRs, and then update this one before merging. But since we will probably keep opening other PRs related to this, we will just need to merge this at some point anyway)

@phofl
Copy link
Member

phofl commented Jan 11, 2023

Yeah lets do it now

@phofl phofl merged commit 710b83b into pandas-dev:main Jan 11, 2023
@phofl
Copy link
Member

phofl commented Jan 11, 2023

thx @jorisvandenbossche

@jorisvandenbossche jorisvandenbossche deleted the fix-is-using-cow-helper branch January 11, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants