modin.pandas.DatetimeIndex.as_unit¶
- DatetimeIndex.as_unit(unit: str) DatetimeIndex[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/src/snowflake/snowpark/modin/plugin/extensions/datetime_index.py#L364-L366)¶
Convert to a dtype with the given unit resolution.
- Parameters:
unit ({'s', 'ms', 'us', 'ns'}) –
- Return type:
same type as self
Examples