Sorry if this is a bit silly I am new to coding. I tried creating a confusion matrix, I used the unique function and then created a null matrix and tried adding loop counters to be able to determine time-complexity but it returns 0. I think it is because I did not call the function correctly but I do not know how to do it. Thank you so much for your help.
L = 0
def confusionmatrix(target, prediction):
dataframe=creatematrixnull(target)
for i in range(len(target)):
dataframe[target[i]][prediction[i]]+=1
L=L+1
return dataframe
print(L)