From 0cf30701f498a7e6583c1bb2f7e9646aaed88ce7 Mon Sep 17 00:00:00 2001 From: Shaked Zychlinski Date: Tue, 18 Jun 2024 11:53:10 +0300 Subject: [PATCH 1/4] explicit dtype for dataframes --- dython/nominal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dython/nominal.py b/dython/nominal.py index fcaab06..67e73d6 100644 --- a/dython/nominal.py +++ b/dython/nominal.py @@ -635,7 +635,7 @@ def associations( # of the corr dataframe. It is done for visualization purposes, so the heatmap values will remain # between -1 and 1 inf_nan = pd.DataFrame( - data=np.zeros_like(corr), columns=columns, index=columns + data=np.zeros_like(corr), columns=columns, index=columns, dtype='object' ) # finding single-value columns @@ -903,7 +903,7 @@ def _plot_associations( inf_nan_mask = np.ones_like(corr) if len(single_value_columns_set) > 0: sv = pd.DataFrame( - data=np.zeros_like(corr), columns=corr.columns, index=corr.index + data=np.zeros_like(corr), columns=corr.columns, index=corr.index, dtype='object' ) for c in single_value_columns_set: if c in display_rows and c in display_columns: From 602ba5b9408be99cb5c92b305a70ee9c64277d85 Mon Sep 17 00:00:00 2001 From: Shaked Zychlinski Date: Tue, 18 Jun 2024 11:54:44 +0300 Subject: [PATCH 2/4] bump version --- CHANGELOG.md | 3 +++ VERSION | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21bed99..a2251cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## 0.7.6 _(dev)_ +* Fix issue [#162](https://github.com/shakedzy/dython/issues/162) + ## 0.7.5 * Adding type hints to all functions (issue [#153](https://github.com/shakedzy/dython/issues/153)) * Dropping dependency in `scikit-plot` as it is no longer maintained (issue [#156](https://github.com/shakedzy/dython/issues/156)) diff --git a/VERSION b/VERSION index da2ac9c..e95c871 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.7.5 \ No newline at end of file +0.7.6.dev \ No newline at end of file From 4503fe942c8ac7e490aef8231455b07a7d38f486 Mon Sep 17 00:00:00 2001 From: Shaked Zychlinski Date: Thu, 20 Jun 2024 14:43:56 +0300 Subject: [PATCH 3/4] version 0.7.6 --- CHANGELOG.md | 2 +- VERSION | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2251cb..903518c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## 0.7.6 _(dev)_ +## 0.7.6 * Fix issue [#162](https://github.com/shakedzy/dython/issues/162) ## 0.7.5 diff --git a/VERSION b/VERSION index e95c871..4d01880 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.7.6.dev \ No newline at end of file +0.7.6 \ No newline at end of file From 7dc3851ff3feb4f03b9ee8ee1d2138b435bf3ed3 Mon Sep 17 00:00:00 2001 From: Shaked Zychlinski Date: Thu, 20 Jun 2024 14:49:27 +0300 Subject: [PATCH 4/4] black format --- dython/nominal.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dython/nominal.py b/dython/nominal.py index 67e73d6..8aa8e15 100644 --- a/dython/nominal.py +++ b/dython/nominal.py @@ -635,7 +635,7 @@ def associations( # of the corr dataframe. It is done for visualization purposes, so the heatmap values will remain # between -1 and 1 inf_nan = pd.DataFrame( - data=np.zeros_like(corr), columns=columns, index=columns, dtype='object' + data=np.zeros_like(corr), columns=columns, index=columns, dtype="object" ) # finding single-value columns @@ -903,7 +903,10 @@ def _plot_associations( inf_nan_mask = np.ones_like(corr) if len(single_value_columns_set) > 0: sv = pd.DataFrame( - data=np.zeros_like(corr), columns=corr.columns, index=corr.index, dtype='object' + data=np.zeros_like(corr), + columns=corr.columns, + index=corr.index, + dtype="object", ) for c in single_value_columns_set: if c in display_rows and c in display_columns: