Roulitoo / cours_iae

5 stars 4 forks source link

Function min max #10

Closed Roulitoo closed 11 months ago

Roulitoo commented 1 year ago

def min_max(df): get_scaled = [] for col in df.columns: print(col)

    x_min = df[col].min()
    x_max = df[col].max()

    #Min_max operator

    scaled = (df[col]-x_min)/(x_max-x_min)
    get_scaled.append(scaled)

return(get_scaled)
Roulitoo commented 1 year ago

Site une question de machine leanring par jour https://today.bnomial.com/