Create empty Dataframe with same dimensions as another?

Creating an empty dataframe with the same index and columns as another dataframe:

import pandas as pd
df_copy = pd.DataFrame().reindex_like(df_original)

Leave a Comment