Skip to content

Allow for cells where there are 0 outcomes in source data. #2

@jameson-c

Description

@jameson-c

In cases where binary flags are being imputed, we need to allow for imputer.gen_analysis_file() to save summaries using columns with NaN results. This occurs if a cell has no instances of a '1' binary flag in donor data.

The following error is a clue that this is happening when you run imputer.gen_analysis_file():
TypeError: NAN/INF not supported in write_number() without 'nan_inf_to_errors' Workbook() option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions