Trying to calculate cosine similarity of a dataframe column. No problems with calculating with small dataset (e.g., 100 samples). Errors occur when dataset increases size to