File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
spec/API_specification/dataframe_api Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 3
3
"""
4
4
from __future__ import annotations
5
5
6
- from typing import Mapping , Sequence , Any
6
+ from typing import Mapping , Sequence , Any , Literal
7
7
8
8
from .column_object import *
9
9
from .dataframe_object import DataFrame
@@ -177,3 +177,25 @@ class Float32:
177
177
178
178
class Bool :
179
179
"""Boolean type with 8 bits of precision."""
180
+
181
+ class Datetime :
182
+ """
183
+ Datetime type with 64 bits of precision.
184
+
185
+ Attributes
186
+ ----------
187
+ time_unit : Literal['ms', 'us', 'ns']
188
+ Precision of the datetime type.
189
+ time_zone : str | None
190
+ Time zone of the datetime type. Only IANA time zones are supported.
191
+ `None` indicates time-zone-naive data.
192
+ """
193
+ time_unit : Literal ['ms' , 'us' , 'ns' ]
194
+ time_zone : str | None # Only IANA time zones are supported
195
+
196
+ class Duration :
197
+ """Duration type with 64 bits of precision."""
198
+ time_unit : Literal ['ms' , 'us' , 'ns' ]
199
+
200
+ class String :
201
+ """String type."""
You can’t perform that action at this time.
0 commit comments