Skip to content

Commit 84e40ec

Browse files
authored
Merge pull request #163 from shakedzy/162-multiple-warning-about-incompatible-dtype-casting-probably-related-to-nan-check
162 multiple warning about incompatible dtype casting probably related to nan check
2 parents 645e661 + 7dc3851 commit 84e40ec

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## 0.7.6
4+
* Fix issue [#162](https://github.com/shakedzy/dython/issues/162)
5+
36
## 0.7.5
47
* Adding type hints to all functions (issue [#153](https://github.com/shakedzy/dython/issues/153))
58
* Dropping dependency in `scikit-plot` as it is no longer maintained (issue [#156](https://github.com/shakedzy/dython/issues/156))

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.5
1+
0.7.6

dython/nominal.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def associations(
635635
# of the corr dataframe. It is done for visualization purposes, so the heatmap values will remain
636636
# between -1 and 1
637637
inf_nan = pd.DataFrame(
638-
data=np.zeros_like(corr), columns=columns, index=columns
638+
data=np.zeros_like(corr), columns=columns, index=columns, dtype="object"
639639
)
640640

641641
# finding single-value columns
@@ -903,7 +903,10 @@ def _plot_associations(
903903
inf_nan_mask = np.ones_like(corr)
904904
if len(single_value_columns_set) > 0:
905905
sv = pd.DataFrame(
906-
data=np.zeros_like(corr), columns=corr.columns, index=corr.index
906+
data=np.zeros_like(corr),
907+
columns=corr.columns,
908+
index=corr.index,
909+
dtype="object",
907910
)
908911
for c in single_value_columns_set:
909912
if c in display_rows and c in display_columns:

0 commit comments

Comments
 (0)