Fix dataframe normalization

This commit is contained in:
coolneng 2020-12-09 22:31:30 +01:00
parent e9aeae37cb
commit c275391088
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 4 additions and 3 deletions

View File

@ -46,9 +46,10 @@ def normalize_numerical_values(df) -> DataFrame:
"TOT_MUERTOS",
]
filtered_df = df.filter(items=cols)
normalized_df = normalize(X=filtered_df)
updated_df = df.update(normalized_df)
return updated_df
normalized_data = normalize(X=filtered_df)
normalized_df = DataFrame(data=normalized_data, columns=filtered_df.columns)
df.update(normalized_df)
return df
def parse_data(source, action) -> DataFrame: