Fix dataframe normalization
This commit is contained in:
parent
e9aeae37cb
commit
c275391088
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue