create an empty data frame with index from another data frame,df2 = pd.DataFrame(index=df1.index)