DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+7 =
Submit