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 60e4663 commit a6d25d3
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
from Modules import *
import Modules

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 = MissingValues.handle(self, df)
df = Modules.MissingValues.handle(self, df)
df1 = df.copy()
self.df1 = df
df = Outliers.handle(self, df)
df = Modules.Outliers.handle(self, df)
df2 = df.copy()
self.df2 = df
df = Adjust.convert_datetime(self, df)
df = Modules.Adjust.convert_datetime(self, df)
df3 = df.copy()
self.df3 = df
df = EncodeCateg.handle(self, df)
df = Modules.EncodeCateg.handle(self, df)
df4 = df.copy()
self.df4 = df
df = Adjust.round_values(self, df, input_data)
df = Modules.Adjust.round_values(self, df, input_data)
df5 = df.copy()
self.df5 = df
logger.info('AutoClean completed successfully')
Expand Down

0 comments on commit a6d25d3

Please sign in to comment.