QST: Pandas agg(list) behavior changed since version 1.3.0 #42727
Labels
Apply
Apply, Aggregate, Transform, Map
Bug
Regression
Functionality that used to work in a prior pandas version
Milestone
Uh oh!
There was an error while loading. Please reload this page.
This question (I am not sure if this is a bug) is still on StackOverflow
https://stackoverflow.com/q/68526846/4865723
I was asked there to open an Issue about it here.
The result of
.agg(list, axis=1)
changed since pandas Version 1.3.0. The goal of my question is to understand what changed and why; and of course how to solve this.This is the result with the last pre-1.30 version of Pandas. The two selected columns are "joined" into a list.
But since pandas 1.3.0 the result is.
I looked into the changelog of pandas 1.3.0. There is nothing about
agg()
but a lot aboutapply()
andtransform()
. But I do not understand the details and I can see which one of this points is related to my situation.I am sure the pandas devs have a good reason to change this behavior. When I understand the background of that decision I am maybe able to find a solution for it.
Sideinfo: In the final productive code I like to do things like this
The text was updated successfully, but these errors were encountered: