Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set an index to a dataframe from another dataframe

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