From c961a13066b8bdc4c0868c6128d8398b46f0243b Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Thu, 16 Nov 2023 21:23:12 +0100 Subject: [PATCH] refactor: replace call of deprecated method --- src/safeds/data/tabular/containers/_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/safeds/data/tabular/containers/_table.py b/src/safeds/data/tabular/containers/_table.py index 410374c5b..693785063 100644 --- a/src/safeds/data/tabular/containers/_table.py +++ b/src/safeds/data/tabular/containers/_table.py @@ -2075,7 +2075,7 @@ def plot_histograms(self) -> Image: """ col_wrap = min(self.number_of_columns, 3) - data = pd.melt(self._data.applymap(lambda value: str(value)), value_vars=self.column_names) + data = pd.melt(self._data.map(lambda value: str(value)), value_vars=self.column_names) grid = sns.FacetGrid(data=data, col="variable", col_wrap=col_wrap, sharex=False, sharey=False) grid.map(sns.histplot, "value") grid.set_xlabels("")