I have a dataframe from which I selected unique values, and this led to ndarray ("unManager") of the form (1187,) ... only one column.
Now I have written a function to group some rows of data, perform calculations, and add values ββto ndarray.
I use ndarray ("unManager") for this, and I get the following error:
AttributeError Traceback (most recent call last)
<ipython-input-48-ff7e78ab33a7> in <module>()
AttributeError: 'numpy.ndarray' object has no attribute 'apply'
Now when I try to convert ndarray ("unManager") to dataframe, via:
dfs = pd.DataFrame(unManager,index=unManager[0])
I get the following error:
TypeError Traceback (most recent call last)
<ipython-input-55-3ee3d2605321> in <module>()
.
.
TypeError: Index(...) must be called with a collection of some kind, 'actama99,CLE' was passed
'actama99, CLE' here is the first value of ndarray ("unManager") of form (1187).
Can someone please tell me what I am doing wrong? TIA