powerplant/users/ml/data_prep/data_utils.py
def skew_features(self, df):
        """Check the skew of all numerical features"""
        skewed_feats = df.apply(lambda x: skew(x)).sort_values(ascending=False)
        print("\nSkew in numerical features: \n")
        skewness = pd.DataFrame({'Skew' :skewed_feats})
        print(skewness.head(10))
Check the skew of all numerical features
Check the skew of all numerical features
Check the skew of all numerical features
def skew_features(self, df):
        skewed_feats = df.apply(lambda x: skew(x)).sort_values(ascending=False)
        print("\nSkew in numerical features: \n")
        skewness = pd.DataFrame({'Skew' :skewed_feats})
        print(skewness.head(10))
def skew_features ( self , df ) : skewed_feats = df . apply ( lambda x : skew ( x ) ) . sort_values ( ascending = False ) print ( "\nSkew in numerical features: \n" ) skewness = pd . DataFrame ( { 'Skew' : skewed_feats } ) print ( skewness . head ( 10 ) )
Check the skew of all numerical features
Check the skew of all numerical features
"""Check the skew of all numerical features"""
self
df