DataFrame constructor when passed a Series (original) (raw)
If I do:
a=Series([1,2,3],index=['a','b','c'],name='x')
b=DataFrame(a)
I would expect b to have a single column 'x' with indices a,b,c; instead only a.values is retained.
If I do:
a=Series([1,2,3],index=['a','b','c'],name='x')
b=DataFrame(a)
I would expect b to have a single column 'x' with indices a,b,c; instead only a.values is retained.