[Q] am i doing stupid with programming

i'm having trouble with programming in even seemingly simple enough data analysis because errors keep coming up.

Now i got to truly wonder, is this programming stuff even possible to do and how others do this thing?

(context:

i'm trying to experiment with clustering on a bio dataset in python but i've been stuck with debugging coming up over x100.

first time, i have Data Type error, which alone took days or weeks to fix

second time, it's NotImplemented some shit... which is now taking another that many days or weeks)