Skip to content

from_dataframe gets a cast_extension_array argument #10398

Open
@ilan-gold

Description

@ilan-gold

Is your feature request related to a problem?

To resolve the ongoing discussion around extension array casting, an option that has arisen would be to add a cast_extension_array argument (see #10301 (comment) as well) to from_dataframe in order to give users "old" behavior (see #10301 for an exmaple where this might help).

Whether this is default true or false is up for debate probably but I think this is a great feature independent of the chaos that has arisen.

Describe the solution you'd like

from_dataframe gets a cast_extension_array argument

Describe alternatives you've considered

The alternative would basically be continuing to fix things as they arise and being totally permissive. But that is what is going to likely happen anyway (i.e., you can set on a Dataset with an extension array type anyway given this feature, no issue).

Additional context

cc @dcherian @keewis

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions