-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
ExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.Output-Formatting__repr__ of pandas objects, to_string__repr__ of pandas objects, to_string
Milestone
Description
Triggered by the discussion I am having in #22511, I was also thinking we should look at our EAs reprs.
Currently we have for IntegerArray:
In [14]: pd.core.arrays.integer_array([1, 2, 3, None])
Out[14]: IntegerArray([1, 2, 3, nan], dtype='Int64')
which looks like code, but actually is not valid code (because the constructor needs an array, has no dtype argument, and nan is actually no defined).
So also here (since here we still have the freedom to choose something without the concern of changing something), I think we should have some discussion about what we ideally want.
Metadata
Metadata
Assignees
Labels
ExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.Output-Formatting__repr__ of pandas objects, to_string__repr__ of pandas objects, to_string