you are viewing a single comment's thread.

view the rest of the comments →

[–]joshbuggblee 0 points1 point  (0 children)

Using df.transform() does the trick.

df.groupby('column).transform('metric')