'pandas to_html only shows even numbers in Jupyter Notebook

I have a pandas data frame, one column of this data frame includes pictures from the link and I try to display this dataframe in Jupyther Notebook, I use following code for it, takes from that acticle.

def path_to_image_html(path):
  return '<img src="'+ path + '" width="60">'
# Rendering the dataframe as HTML table
df.to_html( escape=False, formatters=dict(column=path_to_image_html))
# Rendering the images in the dataframe using the HTML method.
#display(HTML(df.to_html(escape=False, notebook=True, formatters=dict(column = path_to_image_html))))

it used to work perfectly, but now, when I use notebook = True and escape=False, as parameters, it shows only even columns of dataframe and skips all others.

could you please support?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source