-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
EnhancementExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.InternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementation
Milestone
Description
This would let us provide a default construct_from_string
method.
It seems we could have a default implementation for ExtensionDtype.construct_from_string ? (I now just copy pasted from the decimal example, and I think json example also has the same basic one)
The default would have to rely on ExtensionDtype()
being constructable with no arguments, or an ExtensionDtype.empty
method. For many that'll be
@classmethod
def empty(cls):
return cls()
which is easier than implementing construct_from_string
. Maybe call it from_empty
.
Metadata
Metadata
Assignees
Labels
EnhancementExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.InternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementation