Skip to content

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

Closed

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.

Activity

  1. asfimport commented on Apr 1, 2017

    @asfimport
    Author

    Wes McKinney / @wesm:
    Issue resolved by pull request 465
    #465

  2. added this to the 0.3.0 milestone on Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions