Skip to content

Commit

Permalink
Update AutoClean.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elisemercury committed Mar 23, 2022
1 parent a6d25d3 commit 02cbbce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions AutoClean/AutoClean.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
import pandas as pd
import Modules
from AutoClean.Modules import *

from loguru import logger

Expand Down Expand Up @@ -94,19 +94,19 @@ def _validate_params(self, df, verbose, logfile):

def _clean_data(self, df, input_data):
# function for starting the autoclean process
df = Modules.MissingValues.handle(self, df)
df = MissingValues.handle(self, df)
df1 = df.copy()
self.df1 = df
df = Modules.Outliers.handle(self, df)
df = Outliers.handle(self, df)
df2 = df.copy()
self.df2 = df
df = Modules.Adjust.convert_datetime(self, df)
df = Adjust.convert_datetime(self, df)
df3 = df.copy()
self.df3 = df
df = Modules.EncodeCateg.handle(self, df)
df = EncodeCateg.handle(self, df)
df4 = df.copy()
self.df4 = df
df = Modules.Adjust.round_values(self, df, input_data)
df = Adjust.round_values(self, df, input_data)
df5 = df.copy()
self.df5 = df
logger.info('AutoClean completed successfully')
Expand Down

0 comments on commit 02cbbce

Please sign in to comment.