Skip to content

CLN: Single way to get underlying values for Index / Series #19548

Closed
@TomAugspurger

Description

@TomAugspurger

(split from #19520)

It'd be convenient to have an internal method for getting the highest-fidelity array stored by a container (Index, Series, Block?).

For Series, this is already what ._values does. Index._values is sometimes different though (Period, DatetimeIndex with TZ), so we'll use a different name.

dtype array type
category Categorical
datetime64ns ndarray
datetime64ns-tz DatetimeIndex
interval IntervalIndex (eventually IntervalArray)
numeric ndarray
period PeriodIndex (eventually PeriodArray)
sparse SparseArray
str ndarray

Metadata

Metadata

Assignees

No one assigned

    Labels

    CleanInternalsRelated to non-user accessible pandas implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions