File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -975,21 +975,20 @@ def _read_ujson(self) -> DataFrame | Series:
975975 """
976976 Read JSON using the ujson engine.
977977 """
978+ obj : DataFrame | Series
978979 if self .lines :
979980 if self .chunksize :
980981 obj = concat (self )
981982 elif self .nrows :
982983 lines = list (islice (self .data , self .nrows ))
983984 lines_json = self ._combine_lines (lines )
984- obj : DataFrame | Series = self ._get_object_parser (lines_json )
985+ obj = self ._get_object_parser (lines_json )
985986 else :
986987 data = ensure_str (self .data )
987988 data_lines = data .split ("\n " )
988- obj : DataFrame | Series = self ._get_object_parser (
989- self ._combine_lines (data_lines )
990- )
989+ obj = self ._get_object_parser (self ._combine_lines (data_lines ))
991990 else :
992- obj : DataFrame | Series = self ._get_object_parser (self .data )
991+ obj = self ._get_object_parser (self .data )
993992 if self .dtype_backend is not lib .no_default :
994993 return obj .convert_dtypes (
995994 infer_objects = False , dtype_backend = self .dtype_backend
You can’t perform that action at this time.
0 commit comments