polars.Expr.ext.to#

Expr.ext.to(dtype: PolarsDataType | DataTypeExpr) Expr[source]#

Convert to an extension dtype.

The input must be of the storage type of the extension dtype.

engine:In MemoryStreamingDistributed

Warning

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