Skip to content

Commit 2572a32

Browse files
committed
Update _json.py
1 parent eb6b283 commit 2572a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/json/_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ def _read_pyarrow(self) -> DataFrame:
957957
pa_table = pyarrow_json.read_json(self.data)
958958
df = arrow_table_to_pandas(pa_table, dtype_backend=self.dtype_backend)
959959

960-
if isinstance(dict, self.dtype):
960+
if isinstance(self.dtype, dict):
961961
df = df.astype(self.dtype)
962962

963963
return df

0 commit comments

Comments
 (0)