Posted on:

28 Feb 2023

0

Problem with np.chararray.strip(lending_company_total_price[:,0], "id_")

Shows an error: TypeError: tuple indices must be integers or slices, not tuple.


I tried to apply this code: np.chararray.strip(lending_company_total_price[:][0], "id_")

And works, but I can't apply it for the other columns. It only works individually. 


0 answers ( 0 marked as helpful)

Submit an answer