Skip to content

API: downcating on fillna no-ops intentional? #45423

Closed
@jbrockmendel

Description

@jbrockmendel
ser = pd.Series([1, 2, 3], dtype=object)

>>> ser.fillna(4).dtype
dtype('int64')

Better to retain dtype in these cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    API - ConsistencyInternal Consistency of API/BehaviorBugMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions