Skip to content

[Python] Mixed-type object DataFrame columns should not silently coerce to an Arrow type by default #16353

@asfimport

Description

@asfimport
In [4]: df = pd.DataFrame({'a': ['a', 1, 2.0]})

In [5]: df
Out[5]: 
   a
0  a
1  1
2  2

In [6]: pt = pa.Table.from_pandas(df)

In [7]: pt.to_pandas()
Out[7]: 
      a
0     a
1  None
2  None

Reporter: Wes McKinney / @wesm
Assignee: Phillip Cloud / @cpcloud

Related issues:

Note: This issue was originally created as ARROW-736. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions