Skip to content

IntegerArray docs follow-up #22003

Closed
Closed
@chris-b1

Description

@chris-b1

xref #21160

Make it clear that it is opt-in only, by passing/casting dtype. For example [24] and [27] are still float64

More clear separation from numpy dtype - worry that 'int64' vs 'Int64' will be especially confusing for new people? Consider a different name altogether? (NullableInt64?)

In [23]: s = pd.Series([1, 2, np.nan])

In [24]: s
Out[24]: 
0    1.0
1    2.0
2    NaN
dtype: float64

In [25]: s = pd.Series([1, 2, 3])

In [26]: s[2] = np.nan

In [27]: s
Out[27]: 
0    1.0
1    2.0
2    NaN
dtype: float64

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsDtype ConversionsUnexpected or buggy dtype conversionsExtensionArrayExtending pandas with custom dtypes or arrays.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions