Reputation: 77
I want to apply an aggregate to the pet age column, but retain the original df columns that disappear when this agg is applied. From the image, How do I bring the other columns to the resulting df when aggregate is applied.
I could also convert the other columns to numeric type, or merge this with the original? Thanks!
Upvotes: 2
Views: 250