navikt/dataverk

View on GitHub
src/dataverk/utils/anonymization.py

Summary

Maintainability
A
1 hr
Test Coverage

Function anonymize_replace has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

def anonymize_replace(df: pd.DataFrame, eval_column, anonymize_columns=None, evaluator=lambda x: x < 4,
Severity: Minor
Found in src/dataverk/utils/anonymization.py - About 45 mins to fix

    Function _replace_value has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def _replace_value(df, eval_column, columns, evaluator, replace_by):
    Severity: Minor
    Found in src/dataverk/utils/anonymization.py - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status