I'm trying to create a heatmap with some data. For this I've created an empty bidimensional dataframe
dft = pd.DataFrame(0, index=matrix_values_index , columns= matrix_values_columns)
Which gives me a 58x58 matrix.
On the other hand, there are some data within an excel spreadsheet which I've transformed into a multiindex dataframe
df2 = heatmap_values.groupby(['ID Requester','ID Supplier']).agg({'ID Supplier':'count'})
df2.rename(columns={'ID Supplier': 'No. Interdependencies'})
The first index is the index of the bidimensional dataframe
The second index is the column of the bidimensional dataframe
Is there a way to update the bidimensional dataframe with the values of the multiindex dataframe without looping over it?
I've been looking for a solution for it all over the internet, but without success so far.
Do you have any suggestions for this problem?
Thanks in advance.

