We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93af62a commit 67bcbe1Copy full SHA for 67bcbe1
pandas/core/reshape/merge.py
@@ -1657,10 +1657,13 @@ def _get_merge_keys(self):
1657
def _get_join_indexers(self):
1658
""" return the join indexers """
1659
1660
- def flip(xs):
+ def flip(xs) -> np.ndarray:
1661
""" unlike np.transpose, this returns an array of tuples """
1662
xs = [
1663
- x if not is_extension_array_dtype(x) else x._ndarray_values for x in xs
+ x
1664
+ if not is_extension_array_dtype(x)
1665
+ else extract_array(x)._values_for_argsort()
1666
+ for x in xs
1667
]
1668
labels = list(string.ascii_lowercase[: len(xs)])
1669
dtypes = [x.dtype for x in xs]
0 commit comments