@@ -42,16 +42,42 @@ def read_json(
42
42
Literal ["strict" , "ignore" , "replace" , "backslashreplace" , "surrogateescape" ]
43
43
| None
44
44
) = ...,
45
+ lines : bool ,
46
+ chunksize : int ,
47
+ compression : CompressionOptions = ...,
48
+ nrows : int | None = ...,
49
+ storage_options : StorageOptions = ...,
50
+ dtype_backend : DtypeBackend | NoDefault = ...,
51
+ engine : Literal ["ujson" ] = ...,
52
+ ) -> JsonReader [Series ]: ...
53
+ @overload
54
+ def read_json (
55
+ path_or_buf : FilePath | ReadBuffer [bytes ],
56
+ * ,
57
+ orient : JsonSeriesOrient | None = ...,
58
+ typ : Literal ["series" ],
59
+ dtype : bool | Mapping [HashableT , DtypeArg ] | None = ...,
60
+ convert_axes : bool | None = ...,
61
+ convert_dates : bool | list [str ] = ...,
62
+ keep_default_dates : bool = ...,
63
+ precise_float : bool = ...,
64
+ date_unit : TimeUnit | None = ...,
65
+ encoding : str | None = ...,
66
+ encoding_errors : (
67
+ Literal ["strict" , "ignore" , "replace" , "backslashreplace" , "surrogateescape" ]
68
+ | None
69
+ ) = ...,
45
70
lines : Literal [True ],
46
71
chunksize : int ,
47
72
compression : CompressionOptions = ...,
48
73
nrows : int | None = ...,
49
74
storage_options : StorageOptions = ...,
50
75
dtype_backend : DtypeBackend | NoDefault = ...,
76
+ engine : Literal ["pyarrow" ] = ...,
51
77
) -> JsonReader [Series ]: ...
52
78
@overload
53
79
def read_json (
54
- path_or_buf : FilePath | ReadBuffer [str ] | ReadBuffer [ bytes ],
80
+ path_or_buf : FilePath | ReadBuffer [bytes ],
55
81
* ,
56
82
orient : JsonFrameOrient | None = ...,
57
83
typ : Literal ["frame" ] = ...,
@@ -72,6 +98,7 @@ def read_json(
72
98
nrows : int | None = ...,
73
99
storage_options : StorageOptions = ...,
74
100
dtype_backend : DtypeBackend | NoDefault = ...,
101
+ engine : Literal ["pyarrow" ] = ...,
75
102
) -> JsonReader [DataFrame ]: ...
76
103
@overload
77
104
def read_json (
@@ -96,6 +123,32 @@ def read_json(
96
123
nrows : int | None = ...,
97
124
storage_options : StorageOptions = ...,
98
125
dtype_backend : DtypeBackend | NoDefault = ...,
126
+ engine : Literal ["ujson" ] = ...,
127
+ ) -> Series : ...
128
+ @overload
129
+ def read_json (
130
+ path_or_buf : FilePath | ReadBuffer [bytes ],
131
+ * ,
132
+ orient : JsonSeriesOrient | None = ...,
133
+ typ : Literal ["series" ],
134
+ dtype : bool | Mapping [HashableT , DtypeArg ] | None = ...,
135
+ convert_axes : bool | None = ...,
136
+ convert_dates : bool | list [str ] = ...,
137
+ keep_default_dates : bool = ...,
138
+ precise_float : bool = ...,
139
+ date_unit : TimeUnit | None = ...,
140
+ encoding : str | None = ...,
141
+ encoding_errors : (
142
+ Literal ["strict" , "ignore" , "replace" , "backslashreplace" , "surrogateescape" ]
143
+ | None
144
+ ) = ...,
145
+ lines : Literal [True ] = ...,
146
+ chunksize : None = ...,
147
+ compression : CompressionOptions = ...,
148
+ nrows : int | None = ...,
149
+ storage_options : StorageOptions = ...,
150
+ dtype_backend : DtypeBackend | NoDefault = ...,
151
+ engine : Literal ["pyarrow" ] = ...,
99
152
) -> Series : ...
100
153
@overload
101
154
def read_json (
@@ -120,6 +173,32 @@ def read_json(
120
173
nrows : int | None = ...,
121
174
storage_options : StorageOptions = ...,
122
175
dtype_backend : DtypeBackend | NoDefault = ...,
176
+ engine : Literal ["ujson" ] = ...,
177
+ ) -> DataFrame : ...
178
+ @overload
179
+ def read_json (
180
+ path_or_buf : FilePath | ReadBuffer [bytes ],
181
+ * ,
182
+ orient : JsonFrameOrient | None = ...,
183
+ typ : Literal ["frame" ] = ...,
184
+ dtype : bool | Mapping [HashableT , DtypeArg ] | None = ...,
185
+ convert_axes : bool | None = ...,
186
+ convert_dates : bool | list [str ] = ...,
187
+ keep_default_dates : bool = ...,
188
+ precise_float : bool = ...,
189
+ date_unit : TimeUnit | None = ...,
190
+ encoding : str | None = ...,
191
+ encoding_errors : (
192
+ Literal ["strict" , "ignore" , "replace" , "backslashreplace" , "surrogateescape" ]
193
+ | None
194
+ ) = ...,
195
+ lines : Literal [True ] = ...,
196
+ chunksize : None = ...,
197
+ compression : CompressionOptions = ...,
198
+ nrows : int | None = ...,
199
+ storage_options : StorageOptions = ...,
200
+ dtype_backend : DtypeBackend | NoDefault = ...,
201
+ engine : Literal ["pyarrow" ] = ...,
123
202
) -> DataFrame : ...
124
203
125
204
class JsonReader (abc .Iterator , Generic [NDFrameT ]):
0 commit comments