polars.internals.series.DateTimeNameSpace.cast_time_unit

DateTimeNameSpace.cast_time_unit(tu: str) polars.internals.series.Series

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”}