Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

use the index of a dataframe for another dataframe

df2 = pd.DataFrame(df2,index=df1.index)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #index #dataframe #dataframe
ADD COMMENT
Topic
Name
8+2 =