Images in PNG format in a variable (as array) are not being displayed in pandas dataframe. The command lines: display(HTML('df.html', df.to_html(escape=False ,formatters=format_dict))) or display(HTML(df.to_html(escape=False ,formatters=format_dict)))
should run using the following IPython packages from IPython.display import display,HTML from IPython.display import IFrame
However, these commands can only concatenate str (not "PngImageFile") to str. Also, I found in the stack overflow (How to write PNG image to string with the PIL?) that it is possible to solve this issue using a png file, but I need to add this png file into a pandas dataframe that does not work as well because a PngImageFile object is not callable.
How can I solve this issue?
Here is an example: https://colab.research.google.com/drive/163jW-GoXKW4TckuIVK3_wjXB9wP11u0g?usp=sharing