Skip to content

Commit 86c5411

Browse files
committed
docs: Fix numpy tooltip images example
1 parent 439c253 commit 86c5411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/case_studies/numpy-tooltip-images.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ is in the form of an image and render it appropriately.
8989
return f"data:image/png;base64,{img_str}"
9090

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

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

0 commit comments

Comments
 (0)