polars.internals.expr.ExprDateTimeNameSpace.cast_time_unit

ExprDateTimeNameSpace.cast_time_unit(tu: str) polars.internals.expr.Expr

Cast the underlying data to another time unit. This may lose precision.

Parameters
tu

Time unit for the Datetime Series: any of {“ns”, “us”, “ms”}