Skip to content
Prev Previous commit
Next Next commit
modify the request part
  • Loading branch information
KimDoubleB committed Sep 26, 2019
commit 03f1432805e04d37312ac095e616c93b99af1b11
5 changes: 2 additions & 3 deletions pandas/core/indexes/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ def _union_indexes(indexes, sort=True):
result = indexes[0]
if isinstance(result, list):
if sort:
result = Index(sorted(result))
else:
result = Index(result)
result = sorted(result)
result = Index(result)
return result

indexes, kind = _sanitize_and_check(indexes)
Expand Down
3 changes: 1 addition & 2 deletions pandas/io/json/_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,7 @@ def _parse_no_numpy(self):
orient="index",
)
if compat.PY35:
self.obj.sort_index(axis="columns", inplace=True)
self.obj.sort_index(axis="index", inplace=True)
self.obj = self.obj.sort_index(axis="columns").sort_index(axis="index")
elif orient == "table":
self.obj = parse_table_schema(json, precise_float=self.precise_float)
else:
Expand Down