File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,10 @@ def _union_indexes(indexes, sort=True):
169
169
if len (indexes ) == 1 :
170
170
result = indexes [0 ]
171
171
if isinstance (result , list ):
172
- result = Index (sorted (result ))
172
+ if sort :
173
+ result = Index (sorted (result ))
174
+ else :
175
+ result = Index (result )
173
176
return result
174
177
175
178
indexes , kind = _sanitize_and_check (indexes )
Original file line number Diff line number Diff line change @@ -1112,14 +1112,10 @@ def _parse_no_numpy(self):
1112
1112
self .check_keys_split (decoded )
1113
1113
self .obj = DataFrame (dtype = None , ** decoded )
1114
1114
elif orient == "index" :
1115
- self .obj = (
1116
- DataFrame .from_dict (
1117
- loads (json , precise_float = self .precise_float ),
1118
- dtype = None ,
1119
- orient = "index" ,
1120
- )
1121
- .sort_index (axis = "columns" )
1122
- .sort_index (axis = "index" )
1115
+ self .obj = DataFrame .from_dict (
1116
+ loads (json , precise_float = self .precise_float ),
1117
+ dtype = None ,
1118
+ orient = "index" ,
1123
1119
)
1124
1120
elif orient == "table" :
1125
1121
self .obj = parse_table_schema (json , precise_float = self .precise_float )
You can’t perform that action at this time.
0 commit comments