Skip to content

DataFrame constructor when passed a Series #373

Closed
@CRP

Description

@CRP

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions