Skip to content

Commit bf29638

Browse files
code sample for pandas-dev#39434
1 parent 90b086f commit bf29638

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bisect/39434.py

+10
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)