From 55a4bbe4fd329b981b51181a7c900d7cd1094583 Mon Sep 17 00:00:00 2001 From: Arun Rao Date: Fri, 21 Jul 2023 09:26:03 +0530 Subject: [PATCH] Fix issue #507 - Warnings in tests/plotly-charts.ipynb --- datascience/tables.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/datascience/tables.py b/datascience/tables.py index 0eef8e2da..bd93b6dec 100644 --- a/datascience/tables.py +++ b/datascience/tables.py @@ -4055,7 +4055,9 @@ def scatter(self, column_for_x, select=None, overlay=True, fit_line=False, if select is not None: y_labels = self._as_labels(select) if len(y_labels) > 1 and group is not None and overlay: - warnings.warn("Group and overlay are incompatible in a scatter") + # warnings.warn("Group and overlay are incompatible in a scatter") + # Warning commented out as fix for issue # 507 + # When multiple columns are on the y-axis, overlay will be set to False without any unnecessary warnings overlay = False def draw(axis, label, color): @@ -4189,7 +4191,9 @@ def iscatter(self, column_for_x, select=None, overlay=True, fit_line=False, y_labels = self._as_labels(select) if len(y_labels) > 1 and group is not None and overlay: - warnings.warn("Group and overlay are incompatible in a scatter") + # warnings.warn("Group and overlay are incompatible in a scatter") + # Warning commented out as fix for issue # 507 + # When multiple columns are on the y-axis, overlay will be set to False without any unnecessary warnings overlay = False if group is not None and fit_line: @@ -4513,7 +4517,9 @@ def iscatter3d(self, column_for_x, column_for_y, select=None, overlay=True, fit_ z_labels = self._as_labels(select) if len(z_labels) > 1 and group is not None and overlay: - warnings.warn("Group and overlay are incompatible in a scatter") + #warnings.warn("Group and overlay are incompatible in a scatter") + # Warning commented out as fix for issue # 507 + # When multiple columns are on the z-axis, overlay will be set to False without any unnecessary warnings overlay = False if group is not None and fit_line: