Skip to content

Commit 07bb3d8

Browse files
committed
add some more dtypes
1 parent d10e22a commit 07bb3d8

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

spec/API_specification/dataframe_api/__init__.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
from __future__ import annotations
55

6-
from typing import Mapping, Sequence, Any
6+
from typing import Mapping, Sequence, Any, Literal
77

88
from .column_object import *
99
from .dataframe_object import DataFrame
@@ -177,3 +177,25 @@ class Float32:
177177

178178
class Bool:
179179
"""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."""

0 commit comments

Comments
 (0)