Skip to content

Commit

Permalink
fic: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
will-larkin committed Feb 24, 2025
1 parent 73f18a4 commit 72675c9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pandas/io/json/_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,19 +981,15 @@ def _read_ujson(self) -> DataFrame | Series:
elif self.nrows:
lines = list(islice(self.data, self.nrows))
lines_json = self._combine_lines(lines)
obj: DataFrame | Series = self._get_object_parser(
lines_json
)
obj: DataFrame | Series = self._get_object_parser(lines_json)
else:
data = ensure_str(self.data)
data_lines = data.split("\n")
obj: DataFrame | Series = self._get_object_parser(
self._combine_lines(data_lines)
)
else:
obj: DataFrame | Series = self._get_object_parser(
self.data
)
obj: DataFrame | Series = self._get_object_parser(self.data)
if self.dtype_backend is not lib.no_default:
return obj.convert_dtypes(
infer_objects=False, dtype_backend=self.dtype_backend
Expand Down

0 comments on commit 72675c9

Please sign in to comment.