pandas.api.extensions.ExtensionDtype.construct_from_string

pandas 3.1.1 · Extensions · method

Create an extension dtype from its accepted string representation.

Call syntax

pd.api.extensions.ExtensionDtype.construct_from_string(string)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
string Required
Positional or keyword
str

Returns

ExtensionDtype