You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expect to be consistent between versions: previously would not add any columns for the empty Series, now a column of NaN is appended. (I can not see this mentioned in the what's new so think this is an unintended change.)
This was regarded as a bug (#11082), and was fixed for 0.18.1 (PR #12846).
So it is mentioned in the whatsnew docs ("Bug in concat doesn't handle empty Series properly"), but of course difficult to find in such a long list, and it was also not put in the API changes section (it is always a bit subjective whether something is clearly a bug fix or also worth mentioning as an API change, as people can rely on the buggy behaviour. You could argue that in this case a API change mention would be worth it).
Code Sample, a copy-pastable example if possible
Expected Output
Expect to be consistent between versions: previously would not add any columns for the empty
Series
, now a column ofNaN
is appended. (I can not see this mentioned in the what's new so think this is an unintended change.)In
0.18.0
:In
0.18.1
(and tested on0.18.1+25.g4aa6323
):output of
pd.show_versions()
In my
0.18.0
environment the only differences inshow_versions
is thepandas
entry andpandas_datareader
is not present.The text was updated successfully, but these errors were encountered: