|
65 | 65 | class Namespace(Protocol):
|
66 | 66 | __dataframe_api_version__: str
|
67 | 67 |
|
68 |
| - @staticmethod |
69 |
| - def Int64() -> Int64: |
| 68 | + class Int64(): |
70 | 69 | ...
|
71 | 70 |
|
72 |
| - @staticmethod |
73 |
| - def Int32() -> Int32: |
| 71 | + class Int32(): |
74 | 72 | ...
|
75 | 73 |
|
76 |
| - @staticmethod |
77 |
| - def Int16() -> Int16: |
| 74 | + class Int16(): |
78 | 75 | ...
|
79 | 76 |
|
80 |
| - @staticmethod |
81 |
| - def Int8() -> Int8: |
| 77 | + class Int8(): |
82 | 78 | ...
|
83 | 79 |
|
84 |
| - @staticmethod |
85 |
| - def UInt64() -> UInt64: |
| 80 | + class UInt64(): |
86 | 81 | ...
|
87 | 82 |
|
88 |
| - @staticmethod |
89 |
| - def UInt32() -> UInt32: |
| 83 | + class UInt32(): |
90 | 84 | ...
|
91 | 85 |
|
92 |
| - @staticmethod |
93 |
| - def UInt16() -> UInt16: |
| 86 | + class UInt16(): |
94 | 87 | ...
|
95 | 88 |
|
96 |
| - @staticmethod |
97 |
| - def UInt8() -> UInt8: |
| 89 | + class UInt8(): |
98 | 90 | ...
|
99 | 91 |
|
100 |
| - @staticmethod |
101 |
| - def Float64() -> Float64: |
| 92 | + class Float64(): |
102 | 93 | ...
|
103 | 94 |
|
104 |
| - @staticmethod |
105 |
| - def Float32() -> Float32: |
| 95 | + class Float32(): |
106 | 96 | ...
|
107 | 97 |
|
108 |
| - @staticmethod |
109 |
| - def Bool() -> Bool: |
| 98 | + class Bool(): |
110 | 99 | ...
|
111 | 100 |
|
112 |
| - @staticmethod |
113 |
| - def Date() -> Date: |
| 101 | + class Date(): |
114 | 102 | ...
|
115 | 103 |
|
116 |
| - @staticmethod |
117 |
| - def Datetime(time_unit: Literal['ms', 'us'], time_zone: str | None) -> Datetime: |
118 |
| - ... |
| 104 | + class Datetime(): |
| 105 | + def __init__( |
| 106 | + self, |
| 107 | + time_unit: Literal['ms', 'us'], |
| 108 | + time_zone: str | None, |
| 109 | + ): |
| 110 | + ... |
119 | 111 |
|
120 |
| - @staticmethod |
121 |
| - def String() -> String: |
| 112 | + class String(): |
122 | 113 | ...
|
123 | 114 |
|
124 |
| - @staticmethod |
125 |
| - def concat(dataframes: Sequence[DataFrame]) -> DataFrame: |
| 115 | + def concat(self, dataframes: Sequence[DataFrame]) -> DataFrame: |
126 | 116 | ...
|
127 | 117 |
|
128 |
| - @staticmethod |
129 | 118 | def column_from_sequence(
|
| 119 | + self, |
130 | 120 | sequence: Sequence[Any],
|
131 | 121 | *,
|
132 | 122 | dtype: Any,
|
133 | 123 | name: str = "",
|
134 | 124 | ) -> Column:
|
135 | 125 | ...
|
136 | 126 |
|
137 |
| - @staticmethod |
138 |
| - def dataframe_from_columns(*columns: Column) -> DataFrame: |
| 127 | + def dataframe_from_columns(self, *columns: Column) -> DataFrame: |
139 | 128 | ...
|
140 | 129 |
|
141 |
| - @staticmethod |
142 | 130 | def column_from_1d_array(
|
143 |
| - array: Any, *, dtype: Any, name: str = "" |
| 131 | + self, array: Any, *, dtype: Any, name: str = "" |
144 | 132 | ) -> Column:
|
145 | 133 | ...
|
146 | 134 |
|
147 |
| - @staticmethod |
148 | 135 | def dataframe_from_2d_array(
|
| 136 | + self, |
149 | 137 | array: Any,
|
150 | 138 | *,
|
151 | 139 | names: Sequence[str],
|
152 | 140 | dtypes: Mapping[str, Any],
|
153 | 141 | ) -> DataFrame:
|
154 | 142 | ...
|
155 | 143 |
|
156 |
| - @staticmethod |
157 |
| - def is_null(value: object, /) -> bool: |
| 144 | + def is_null(self, value: object, /) -> bool: |
158 | 145 | ...
|
159 | 146 |
|
160 |
| - @staticmethod |
161 |
| - def is_dtype(dtype: Any, kind: str | tuple[str, ...]) -> bool: |
| 147 | + def is_dtype(self, dtype: Any, kind: str | tuple[str, ...]) -> bool: |
162 | 148 | ...
|
163 | 149 |
|
164 |
| - @staticmethod |
165 |
| - def date(year: int, month: int, day: int) -> Scalar: |
| 150 | + def date(self, year: int, month: int, day: int) -> Scalar: |
166 | 151 | ...
|
167 | 152 |
|
168 | 153 | class SupportsDataFrameAPI(Protocol):
|
|
0 commit comments