Skip to content

API: always treat tuples as object-dtype-scalars for arithmetic? #33807

@jbrockmendel

Description

@jbrockmendel

For arithmetic-like ops when we see a list we cast it to ndarray, while with tuple we sometimes cast to ndarray, sometimes treat it as scalar-like. We should be consistent about this.

I lean towards always-scalar-like, but would be fine either way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API - ConsistencyInternal Consistency of API/BehaviorAPI DesignDeprecateFunctionality to remove in pandasNested DataData where the values are collections (lists, sets, dicts, objects, etc.).Numeric OperationsArithmetic, Comparison, and Logical operations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions