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

REF: initialize Series._name in _from_mgr to return valid Series object #55607

Conversation

jorisvandenbossche
Copy link
Member

@jorisvandenbossche jorisvandenbossche commented Oct 20, 2023

Currently Series._from_mgr doesn't return a fully initialized Series object, because it misses the _name attribute (without this, several kinds of operations fail on the object).
While _from_mgr is not a user-facing method, I think also from a developer perspective, it's nicer if it returns a proper Series, for example for during debugging, and for not having to think about setting _name after using it (as we are currently doing).

@mroeschke mroeschke added the Internals Related to non-user accessible pandas implementation label Oct 20, 2023
@jorisvandenbossche jorisvandenbossche changed the title REF: initialize Series._name for class instead of after _from_mgr REF: initialize Series._name in _from_mgr to return valid Series object Oct 20, 2023
Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

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

LGTM (though Id be OK with inheriting the base class docstring, maybe even having it use super()._from_mgr)

Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Nov 25, 2023
@mroeschke
Copy link
Member

Looks like this PR has gone stale and needs a rebase so closing to clear the queue, but feel free to reopen when you have time to circle back

@mroeschke mroeschke closed this Apr 23, 2024
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 Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants