I have a DataFrame with this format
Index Date A B
1 01-01-2000 1 1
2 01-03-2000 3 6
which I would like to index by date and fill in the missing date rows to create something like this
Date A B
01-01-2000 1 1
01-02-2000 NaN NaN
01-03-2000 3 6
Following this post I have created the below code, but the empty rows are still not being added.
df.set_index('Date', inplace=True)
df = df.reindex(df.index)