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