i am normalizing the data set iris in python and get the error ::TypeError: 'numpy.float64' object is not callable

0 votes
for i in cnames:
    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
Jul 14, 2019 in Python by anonymous
Have you used "min" or "max" as a variable in your code?

1 answer to this question.

0 votes



for i in names:
    c[i] = (c[i] - c[i].min())/(c[i].max() - c[i].min())

answered Aug 19, 2019 by Noel Deepak Palle
Thanks. This worked.

Related Questions In Python

0 votes
1 answer

In NumPy how do I get the maximum of subsets? Python

You can use np.maximum.reduceat: >>> _, idx = np.unique(g, ...READ MORE

answered Nov 9, 2018 in Python by Nymeria
• 3,520 points
0 votes
1 answer

Python TypeError: 'list' object is not callable.

The error says the list is not ...READ MORE

answered Feb 8, 2019 in Python by Omkar
• 69,020 points
0 votes
1 answer

Why am I getting a error when I am printing two different data types in python?

different data type is being used. that ...READ MORE

answered Mar 6, 2019 in Python by Mohammad
• 3,210 points
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,200 views
0 votes
0 answers