how to get over with debugging and actually move forward

How to get over with debugging 24/7 not making any actual progress when programming? even my task is not literally programming, it's just data science task.

.

(context:

i'm seriously devastated by encountering debugging issues all the time in python code.

i learned basic syntax enough, even learned java and C before so programming isn't new to me.

i used gpt, both making initial code and debugging it, which kept giving me another problem each time.

i tried to analytically solve the problem but still it keeps giving errors.

now i wonder, how is it even possible to do these stuff? )

.

(example:

when i try to run Kprototype clustering (https://kprototypes.readthedocs.io/en/latest/api.html) on a dataset w/ or w/o GPT's help,

at this line of the code :

clusters = kproto.fit_predict(data['a'].astype(int), 'b')

first time i have data type error,

second time i have NotImplementedError.

Fixing these took all my days w/o any actual progress in the result in the end.

)