polars.Series.ext.to#

Series.ext.to(dtype: PolarsDataType) Series[source]#

Create a Series with an extension dtype.

The input series must have the storage type of the extension dtype.

Warning

This functionality is currently considered unstable. It may be changed at any point without it being considered a breaking change.