I have a data series,
df,
primary
Buy 484
Sell 429
Blanks 130
FX Spot 108
Income 77
FX Forward 2
trying to crate a dataframe with 2 column. first column values should be the index of df second column should have the values of primary in df
by using,
filter_df=pd.DataFrame({'contents':df.index, 'values':df.values})
I get,
Exception: Data must be 1-dimensional