Skip to content

Commit a158cb6

Browse files
committed
Add type aliases
1 parent 123cc90 commit a158cb6

File tree

6 files changed

+87
-63
lines changed

6 files changed

+87
-63
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import numpy as np
2+
import numpy.typing as npt
3+
4+
NDArray = npt.NDArray
5+
6+
StringArray = StrArray = npt.NDArray[np.str_]
7+
BytesArray = npt.NDArray[np.bytes_]
8+
Float32Array = FloatArray = npt.NDArray[np.float32]
9+
Float64Array = DoubleArray = npt.NDArray[np.float64]
10+
IntArray = npt.NDArray[np.int_]
11+
Int8Array = npt.NDArray[np.int8]
12+
Int16Array = npt.NDArray[np.int16]
13+
Int32Array = npt.NDArray[np.int32]
14+
Int64Array = npt.NDArray[np.int64]
15+
UInt8Array = npt.NDArray[np.uint8]
16+
UInt16Array = npt.NDArray[np.uint16]
17+
UInt32Array = npt.NDArray[np.uint32]
18+
UInt64Array = npt.NDArray[np.uint64]
19+
DateTimeArray = npt.NDArray[np.datetime64]
20+
TimeDeltaArray = npt.NDArray[np.timedelta64]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from pandas import DataFrame # noqa: F401
2+
from pandas import Series # noqa: F401
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from polars import DataFrame # noqa: F401
2+
from polars import Series # noqa: F401
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from pyarrow import Array # noqa: F401
2+
from pyarrow import Table # noqa: F401

0 commit comments

Comments
 (0)