Skip to content

Type inference with list of lists in DataFrame constructor #484

@wesm

Description

@wesm

per @aristotle137

In [1216]: l = [[1, 'a'], [2, 'b']]
     ...: df = DataFrame(data = l, columns = ["num", "str"])
     ...:

In [1217]: df.dtypes
Out[1217]: num    object
               str    object

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions