on-internet
← Community

Groupby function being deprecated - what can I use instead?

Stack Overflow ·

I'm a meteorologist and use Pandas extensively. When I was writing a script earlier, I got a warning that groupby is being deprecated in future versions of Pandas. I'm wondering what I can use in place of it. Thanks. Here's the error I got: Dropping invalid columns in DataFrameGroupBy.max is deprecated. In a future version, a TypeError will be raised. Before calling .max, select only columns which should be valid for the function.

Comments

Sign in or sign up to comment and upvote.

No comments yet.