Skip to content

ENH: set __module__ for Dtype and Index classes #59909

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

Amir-101
Copy link
Contributor

@Amir-101 Amir-101 commented Sep 27, 2024

Modified top-level name object for all Types class in the Dtype module by importing the set module decorator and decorating the class. Tested the modification by adding an assert statement to the already existing test_set_module test function

Amir added 4 commits September 27, 2024 13:49
… the set module decorator and decorating the class. Tested the modification by adding an assert statement to the already existing test_set_module test function
…pe ArrowDtype clasess by decorating them with the set module decorator. Tested the modification by adding an assert statement to the already existing test_set_module test function
@jorisvandenbossche jorisvandenbossche added the Output-Formatting __repr__ of pandas objects, to_string label Oct 2, 2024
Copy link
Contributor

github-actions bot commented Nov 2, 2024

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.

@jorisvandenbossche jorisvandenbossche added the Sprints Sprint Pull Requests label Nov 7, 2024
@jorisvandenbossche jorisvandenbossche added this to the 3.0 milestone Nov 7, 2024
Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Apologies for the slow follow-up, but this looks all good!
I just updated it with the latest main branch, fixed up CategoricalIndex (you added it to the tests, but didn't decorate that one) and ran our linting on the code.

@Amir-101 thanks again for the contribution!

@jorisvandenbossche jorisvandenbossche changed the title ENH: set __module__ for objects in pandas pd.CategoricalDtype API ENH: set __module__ for Dtype and Index classes Nov 7, 2024
@jorisvandenbossche jorisvandenbossche merged commit 4cef979 into pandas-dev:main Nov 8, 2024
51 checks passed
@Amir-101 Amir-101 deleted the enh_top-level_object_name branch November 8, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Output-Formatting __repr__ of pandas objects, to_string Sprints Sprint Pull Requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants