diff --git a/shiny/plotutils.py b/shiny/plotutils.py index 3c60eeb96..aba9e69ef 100644 --- a/shiny/plotutils.py +++ b/shiny/plotutils.py @@ -225,7 +225,7 @@ def near_points( # For no current coordinfo if coordinfo is None: if add_dist: - new_df["dist"] = np.NaN + new_df["dist"] = np.nan if all_rows: new_df["selected_"] = False