Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Python by (19.9k points)

for i in cnames:

    print(i)

    df_csv[i] = (df_csv[i] - min(df_csv[i]))/(max(df_csv[i]) - min(df_csv[i]))

here df_csv is my dataset name

1 Answer

0 votes
by (25.1k points)

This is because you incorrectly normalizing, you need to do it like this:

for i in names:

    print(i)

    c[i] = (c[i] - c[i].min())/(c[i].max() - c[i].min())

If you want to get a deeper understanding of data science and libraries used in it you can watch this youtube video: 

Related questions

0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer
asked Sep 26, 2019 in Python by Sammy (47.6k points)
0 votes
0 answers

Browse Categories

...