Skip to content

Commit

Permalink
Merge pull request #163 from shakedzy/162-multiple-warning-about-inco…
Browse files Browse the repository at this point in the history
…mpatible-dtype-casting-probably-related-to-nan-check

162 multiple warning about incompatible dtype casting probably related to nan check
  • Loading branch information
shakedzy authored Jun 20, 2024
2 parents 645e661 + 7dc3851 commit 84e40ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.5
0.7.6
7 changes: 5 additions & 2 deletions dython/nominal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 84e40ec

Please sign in to comment.