diff --git a/CHANGELOG.md b/CHANGELOG.md index 21bed99..903518c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## 0.7.6 +* 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..4d01880 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.7.5 \ No newline at end of file +0.7.6 \ No newline at end of file diff --git a/dython/nominal.py b/dython/nominal.py index fcaab06..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 + 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 + 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: