Issue
I try to use panda by using this code
dat = pd.DataFrame()
return_data = dat.values().T
And I got error
TypeError
Traceback (most recent call last)
Input In [27], in <cell line: 1>()
----> 1 return_data = dat.values().T
TypeError: 'numpy.ndarray' object is not callable
Try to solve the errors and no idea about error
Solution
Replace dat.values().T
by dat.values.T
. This error happens when you call a numpy array as function.
Answered By - romain gal
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.