Skip to content

Commit

Permalink
Set the default prop missing for data free to 0 (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
qubixes authored Dec 9, 2024
1 parent b0ca3f3 commit e7ade01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metasyn/metaframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,13 @@ def fit_dataframe( # noqa: PLR0912
f"Column with name '{var_spec.name}' not found and not declared as "
"data_free.")
distribution = meta_config.dist_providers.create(var_spec)
prop_missing = 0.0 if var_spec.prop_missing is None else var_spec.prop_missing
var = MetaVar(
var_spec.name,
var_spec.var_type,
distribution,
description=var_spec.description,
prop_missing=var_spec.prop_missing,
prop_missing=prop_missing,
)
all_vars.append(var)
if df is None:
Expand Down

0 comments on commit e7ade01

Please sign in to comment.