:py:mod:`bluecast.preprocessing.remove_collinearity` ==================================================== .. py:module:: bluecast.preprocessing.remove_collinearity Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: bluecast.preprocessing.remove_collinearity.remove_correlated_columns .. py:function:: remove_correlated_columns(df: pandas.DataFrame, threshold: float = 0.9) Remove collinear columns from a given DataFrame. :param df: Pandas DataFrame holding all columns. :param threshold: Float indicating the correlation threshold. If the correlation is above or equal this value, one of the columns will be dropped. :return: DataFrame with reduced number of columns.