Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Sort index values with pandas

import pandas as pd

# Sort index from outer to inner in ascending order
df = df.sort_index()

# Display DataFrame
print(df)
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #Sort #index #values #pandas
ADD COMMENT
Topic
Name
8+4 =