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
I had some code that was relaying on the Series constructor the way it was before this bugfix. I was able to adapt it to the new version very easily, but I just wonder if this is the intended behavior now:
In [2]: Series(Series(["a"]), index=[2])
Out[2]: 2 NaN
when before you could do:
In [2]: Series(Series(["a"]), index=[2])
Out[2]: 2 a
Of course, you can still get the same result as before just by using the .values property:
In [3]: Series(Series(["a"]).values, index=[2])
Out[3]: 2 a
so, again, I'm just wondering if this is the intended behavior or maybe an unforeseen side-effect.
In [2]: Series(Series(["a"]), index=[2])
Out[2]: 2 a
It's not consistent with how Series handles other data types, like dicts. It's been brought up to me by others, but I think unfortunately a lot of people have written code relying on the "bug" here.
This looks like a regression that did not have a unit test (pretty sure this used to do the right thing)
cc @hughdbrown
The text was updated successfully, but these errors were encountered: