We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02dac67 commit 69a2d34Copy full SHA for 69a2d34
src/gretel_synthetics/utils/stats.py
@@ -301,6 +301,10 @@ def calculate_correlation(
301
A dataframe of correlation values.
302
303
"""
304
+ # PLAT-1131 Ensure that all nominal columns are present in df.
305
+ if nominal_columns is not None:
306
+ _df_cols = df.columns
307
+ nominal_columns = [col for col in nominal_columns if col in _df_cols]
308
# If opt is True, then go the faster (just not quite as accurate) route of global replace missing with 0
309
if opt:
310
with pd.option_context("mode.use_inf_as_na", True):
0 commit comments