Skip to content

Commit

Permalink
drop na transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
jgjuara committed Jul 15, 2024
1 parent 72b40e6 commit d262472
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data_transformers/default_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ def convert_indec_codes_to_isoprov(df: DataFrame, df_cod_col:str):
return df

@transformer.convert
def mutiplicar_por_escalar(df: DataFrame, col:str, k:float):
def multiplicar_por_escalar(df: DataFrame, col:str, k:float):
df[col] = df[col]*k
return df

@transformer.convert
def drop_na(df:DataFrame, col:str):
df = df.dropna(subset=col, axis=0)
return df

0 comments on commit d262472

Please sign in to comment.