I have a dataframe which I want to show as table on a PDF file through matplotlib.
My code looks like this (I bypass what I do before as the data is not relevant, I guess, for my question):
table = ax_table.table(cellText=str_df.values, rowLabels=str_df.index, cellLoc='center',
colColours=['gainsboro'] * len(table_col), colLabels=table_col, loc='center',
colWidths= [0.12]*(len(table_col)), cellColours = img.to_rgba(df_for_table.values))
My dataframe (str_df) index name is "Area" and I would like to show it throught a matplotlib table instead of have a blank space (circled in red):
Does anyone know if this is possible?
Thanks.

