Skip to content

Commit f941ce2

Browse files
committed
wip
1 parent b0f53df commit f941ce2

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

sdmetrics/reports/single_table/_properties/column_pair_trends.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -454,19 +454,6 @@ def _get_correlation_matrix(self, column_name):
454454

455455
return heatmap_df.astype(float).round(3)
456456

457-
def _get_heatmap_customdata(self, correlation_matrix, customdata):
458-
if isinstance(customdata, pd.DataFrame):
459-
customdata = customdata.reindex(
460-
index=correlation_matrix.index,
461-
columns=correlation_matrix.columns,
462-
)
463-
return customdata.to_numpy()
464-
465-
if isinstance(customdata, pd.Series):
466-
return customdata.to_numpy()
467-
468-
return customdata
469-
470457
def _get_heatmap(self, correlation_matrix, coloraxis, hovertemplate, customdata=None):
471458
"""Get the heatmap for the given correlation matrix.
472459
@@ -480,13 +467,12 @@ def _get_heatmap(self, correlation_matrix, coloraxis, hovertemplate, customdata=
480467
customdata (pandas.DataFrame or None):
481468
The customdata to use. Defaults to None.
482469
"""
483-
customdata_array = self._get_heatmap_customdata(correlation_matrix, customdata)
484470
base_heatmap = go.Heatmap(
485471
x=correlation_matrix.columns,
486472
y=correlation_matrix.columns,
487473
z=correlation_matrix,
488474
coloraxis=coloraxis,
489-
customdata=customdata_array,
475+
customdata=customdata,
490476
hovertemplate=hovertemplate,
491477
)
492478

0 commit comments

Comments
 (0)