pyarrow.duration#
- pyarrow.duration(unit)#
Create instance of a duration type with unit resolution.
- Parameters
- unit
str
One of โsโ [second], โmsโ [millisecond], โusโ [microsecond], or โnsโ [nanosecond].
- unit
- Returns
- type
pyarrow.DurationType
- type
Examples
>>> import pyarrow as pa >>> pa.duration('us') DurationType(duration[us]) >>> pa.duration('s') DurationType(duration[s])