Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas order dataframe by index of other dataframe

df2 = df2.reindex(df1.index) # reorder df2 by index of df1
 
PREVIOUS NEXT
Tagged: #pandas #order #dataframe #index #dataframe
ADD COMMENT
Topic
Name
4+7 =