+2 votes
in Programming Languages by (73.8k points)

I am getting error "TypeError: 'numpy.ndarray' object is not callable" for the following code:

 print (labels.values())

"labels" is a pandas dataframe.

1 Answer

+1 vote
by (349k points)
selected by
 
Best answer

Try

print (labels.values)

instead of

print (labels.values())

Because you are using values as a function here, it's giving error.


...