You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run test_df['Category'].eq('onboarding return-start input').groupby(test_df['Original_UserId']).cummax()
This gives a result
If I run
test_df['Category'].eq('onboarding return-start input').groupby('Original_UserId').cummax()
I get keyerror
I am guessing the keyerror is because of the checking that occurs on the given object, that being whether the object contains that given column or not.
Suggested fix for documentation
I am not sure, maybe just add that the difference is that one checks whether one contains the given object series and the other does not.
The text was updated successfully, but these errors were encountered:
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/user_guide/groupby.html
Especifically on the line
df.groupby('A')
is just syntactic sugar fordf.groupby(df['A']).
A list of any of the above things.
Documentation problem
Well here is a sample on how is not just syntactic sugar. I think
If I run
test_df['Category'].eq('onboarding return-start input').groupby(test_df['Original_UserId']).cummax()
This gives a result
If I run
test_df['Category'].eq('onboarding return-start input').groupby('Original_UserId').cummax()
I get keyerror
I am guessing the keyerror is because of the checking that occurs on the given object, that being whether the object contains that given column or not.
Suggested fix for documentation
I am not sure, maybe just add that the difference is that one checks whether one contains the given object series and the other does not.
The text was updated successfully, but these errors were encountered: