For me, this issue was caused by having some samples containing no data at all in the review feature. You can change this and set the samples with no reviews to be blank by using the following:
train = train.fillna("")
For me, this issue was caused by having some samples containing no data at all in the review feature. You can change this and set the samples with no reviews to be blank by using the following:
train = train.fillna("")