1

I use python 3.7.3 and I run this code on Jupyter Notebook .

I have a column named 'image' in my Dataframe named df that contains Url of images I wanna visualize inside the df.

I saw some answers and I tried to use this code:


from IPython.display import Image, HTML

def path_to_image_html(path):

    return '<img src="'+ path + '" style=max-height:124px;"/>'

HTML(df.to_html(escape=False ,formatters=dict(image=path_to_image_html)))

However, I get this result instead:

enter image description here

Can anyone tell me how I get the images using this code or any other code.

Ayoubayjx
  • 111
  • 1

0 Answers0