-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
ENH: set __module__ on NamedAgg / SeriesGroupBy / DataFrameGroupBy (pandas.core.groupby.generic
classes)
#60268
ENH: set __module__ on NamedAgg / SeriesGroupBy / DataFrameGroupBy (pandas.core.groupby.generic
classes)
#60268
Conversation
It appears that [ins] In [1]: import pandas as pd
[ins] In [2]: pd.NamedAgg
Out[2]: pandas.core.groupby.generic.NamedAgg
[ins] In [3]: pd.SeriesGroupBy
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[3], line 1
----> 1 pd.SeriesGroupBy
AttributeError: module 'pandas' has no attribute 'SeriesGroupBy'
[ins] In [4]: pd.DataFrameGroupBy
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[4], line 1
----> 1 pd.DataFrameGroupBy
AttributeError: module 'pandas' has no attribute 'DataFrameGroupBy' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ofsouzap
Correct, they are exposed in |
Thanks, I'll work on getting this implemented |
pandas.core.groupby.generic
classes with @set_module('pandas')
pandas.core.groupby.generic
classes)
489627d
to
d579b42
Compare
Thanks @ofsouzap for the updates. Because of merging some of the related PRs, there is now a merge conflict in the tests file. Could you merge the latest main to resolve that conflict? (and let us know if you need any help with that) |
d579b42
to
9ec54e5
Compare
xref #55178