polars.self_dtype#

polars.self_dtype() DataTypeExpr[source]#

Get the dtype of self in map_elements and map_batches.

Warning

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