Skip to content

Commit

Permalink
docs: Fix numpy tooltip images example
Browse files Browse the repository at this point in the history
  • Loading branch information
binste committed Mar 30, 2024
1 parent 439c253 commit 86c5411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/case_studies/numpy-tooltip-images.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ is in the form of an image and render it appropriately.
return f"data:image/png;base64,{img_str}"

# The column with the base64 image string must be called "image" in order for it to trigger the image rendering in the tooltip
df['image'] = df[['image1', 'image2']].map(create_tooltip_image, axis=1)
df['image'] = df[['image1', 'image2']].apply(create_tooltip_image, axis=1)

# Dropping the image arrays since they are large an no longer needed
df_plot = df.drop(columns=['image1', 'image2'])
Expand Down

0 comments on commit 86c5411

Please sign in to comment.