dataframe_image icon indicating copy to clipboard operation
dataframe_image copied to clipboard

MultiIndex does not work with matplotlib

Open cheremovsky opened this issue 2 years ago • 1 comments

When table_conversion='matplotlib' is used multi-indexed dataframes are rendered incorrectly — multiindex is getting rolled back to the columns — as if I called .reset_index() dfi.export(last_reses, 'dream_strats.png', table_conversion='matplotlib')

How it looks: Screenshot 2023-09-03 at 14 57 06

How it should look: Screenshot 2023-09-03 at 14 57 45

cheremovsky avatar Sep 03 '23 11:09 cheremovsky

It is as designed.

Multi-index calculation is too complex for current simulation way in matplotlib. But it will work in any browser convert method.

I am glad to accept a PR if you can provide an implementation.

PaleNeutron avatar Sep 03 '23 12:09 PaleNeutron