Skip to content

REF: avoid access to _mgr.blocks -> _mgr._is_single_block #37155

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

Conversation

jorisvandenbossche
Copy link
Member

@jbrockmendel a small follow-up on #36873. It keeps the same spirit of that PR (I think), but just replacing the access of len(self._mgr.blocks) with an existing attribute on the manager (could also remove the leading underscore on the attribute).
(this makes it easier to override this attribute in the ArrayManager, and limits the access to the blocks outside of the internals)

@jorisvandenbossche jorisvandenbossche added the Internals Related to non-user accessible pandas implementation label Oct 16, 2020
@jorisvandenbossche jorisvandenbossche added this to the 1.2 milestone Oct 16, 2020
@jbrockmendel
Copy link
Member

Good idea. Probably should be public

@jorisvandenbossche
Copy link
Member Author

(failure is unrelated, "##[error]Insufficient system resources exist to complete the requested service.")

@jorisvandenbossche jorisvandenbossche merged commit 8cd42e1 into pandas-dev:master Oct 16, 2020
@jorisvandenbossche jorisvandenbossche deleted the mgr-mixed-type branch October 16, 2020 17:27
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Oct 26, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants