construct_from_string#
- classmethod NestedDtype.construct_from_string(string: str) Self[source]#
Construct NestedDtype from a string representation.
This works only for simple types, i.e. non-parametric pyarrow types.
- Parameters:
string (str) – The string representation of the nested type. For example, ‘nested<x: [int64], y: [float64]’. It must be consistent with the string representation of the dtype given by the name attribute.
- Returns:
The constructed NestedDtype.
- Return type:
- Raises:
TypeError – If the string is not a valid nested type string or if the element types are parametric pyarrow types.