+1 vote
in Programming Languages by (8.2k 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

0 votes
by (16.1k points)

Try

print (labels.values)

instead of

print (labels.values())

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

...