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
DOC: Example of Dataframe given in SeriesGroupBy.transform #49901
Comments
@ramvikrams Do you mean we should change |
Actually the doc is correct we just need to make it more explicit |
@ramvikrams So can I comment out the suggested fix? |
Yes it seems right but I also just want to confirm from a member of pandas after that you can continue |
Thank you for your clarification! |
|
yes I understood that but I feel this example needs clarity for as a beginner reading it |
I will take this issue |
but I have a question that is the return type should be of |
I've just looked at the documentation for |
in that example, |
yeah |
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.groupby.SeriesGroupBy.transform.html
Documentation problem
This is the current example in SeriesGroupBy.tranform
Suggested fix for documentation
It should be changed with
grouped: pd.Series=df.groupby('A')[['C', 'D']]
just to make it clear it becomes hard for first timers
The text was updated successfully, but these errors were encountered: