I am getting the error "MemoryError: Unable to allocate 21.7 GiB for an array with shape (53940, 53940) and data type float64" when I am performing the below function.
def precisision(col):
fp=col.sum(axis=0)-np.diag(col)
tp=np.diag(col)
presision=tp/(tp+fp)
print (presision)
ad=precisision(df["depth"])
Diamonds dataset data set:-https://github.com/siddheshkadam21/Data-Extraction-one/raw/main/diamonds-m.csv