We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90b086f commit bf29638Copy full SHA for bf29638
bisect/39434.py
@@ -0,0 +1,10 @@
1
+import numpy as np
2
+import pandas as pd
3
+
4
+print(pd.__version__)
5
6
+df = pd.DataFrame(np.arange(64))
7
+length = len(df.index)
8
+df.index = [(i - length / 2) % length for i in range(length)]
9
+result = df.sort_index(axis=0, ascending=None, na_position="first")
10
+print(result)
0 commit comments