scripts/data_manipulation.py
def normalize_df(self, sep_index: int) -> pd.DataFrame:
        """
            Returns the objects DataFrames column normalized using Normalizer
            Parameters
            ----------
            None

            Returns
            -------
            pd.DataFrame
        """
        try:
            unnormal = self.df.iloc[:, :sep_index]
            normalized = self.df.iloc[:, sep_index:]
            columns = normalized.columns
            normalizer = Normalizer()
            normalized_data = normalizer.fit_transform(normalized)
            normalized_data = pd.DataFrame(normalized_data, columns=columns)
            self.df = pd.merge(left=unnormal, left_index=True,
                               right=normalized_data, right_index=True, how='inner')

            return self.df

        except:
            print("Failed to normalize the dataframe")

            Returns the objects DataFrames column normalized using Normalizer
            Parameters
            ----------
            None

            Returns
            -------
            pd.DataFrame
        
Returns the objects DataFrames column normalized using Normalizer
Parameters

None

Returns


Returns the objects DataFrames column normalized using Normalizer Parameters None Returns
def normalize_df(self, sep_index: int) -> pd.DataFrame:
        try:
            unnormal = self.df.iloc[:, :sep_index]
            normalized = self.df.iloc[:, sep_index:]
            columns = normalized.columns
            normalizer = Normalizer()
            normalized_data = normalizer.fit_transform(normalized)
            normalized_data = pd.DataFrame(normalized_data, columns=columns)
            self.df = pd.merge(left=unnormal, left_index=True,
                               right=normalized_data, right_index=True, how='inner')
            return self.df
        except:
            print("Failed to normalize the dataframe")
def normalize_df ( self , sep_index : int ) -> pd . DataFrame : try : unnormal = self . df . iloc [ : , : sep_index ] normalized = self . df . iloc [ : , sep_index : ] columns = normalized . columns normalizer = Normalizer ( ) normalized_data = normalizer . fit_transform ( normalized ) normalized_data = pd . DataFrame ( normalized_data , columns = columns ) self . df = pd . merge ( left = unnormal , left_index = True , right = normalized_data , right_index = True , how = 'inner' ) return self . df except : print ( "Failed to normalize the dataframe" )
Returns the objects DataFrames column normalized using Normalizer
Parameters
Returns the objects DataFrames column normalized using Normalizer Parameters
"""
            Returns the objects DataFrames column normalized using Normalizer
            Parameters
            ----------
            None

            Returns
            -------
            pd.DataFrame
        """
self
sep_index
int