BUG:Pandas 1.0.3 → 1.1.1 behavior change on DataFrame.apply() whith raw option and func returning string #35940
Closed
2 of 3 tasks
Labels
Apply
Apply, Aggregate, Transform, Map
Bug
Regression
Functionality that used to work in a prior pandas version
Milestone
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Output
0 aa
1 bb
dtype: object
0 bbb
1 aa
dtype: object
Problem description
The results are truncated when the smallest strings is first. However, when the result (eg. array[0]) is printed before the return of the func, it's displays the correct value.
(This issue occurred when using apply with the raw option for a function using several columns)
Expected Output
0 aa
1 bbb
dtype: object
0 bbb
1 aa
dtype: object
Output of
pd.show_versions()
Pandas 1.1.1
Numpy 1.19.1
The text was updated successfully, but these errors were encountered: