From 86c5411714b826d06aefe8b6c5ad704627ba77c1 Mon Sep 17 00:00:00 2001 From: Stefan Binder Date: Sat, 30 Mar 2024 16:22:01 +0100 Subject: [PATCH] docs: Fix numpy tooltip images example --- doc/case_studies/numpy-tooltip-images.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/case_studies/numpy-tooltip-images.rst b/doc/case_studies/numpy-tooltip-images.rst index ee04eb3b6..6b2c71c48 100644 --- a/doc/case_studies/numpy-tooltip-images.rst +++ b/doc/case_studies/numpy-tooltip-images.rst @@ -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'])