I received this error message: Found input variables with inconsistent numbers of samples: [15573, 15600]. How do I resolve it please?
You likely get problems because you remove rows containing nulls in X_train and y_train independent of each other. y_train probably has few, or no nulls and X_train probably has some. So when you remove a row in X_train and the same row is not removed in y_train it will cause your data to be unsynced and have different lenghts. Instead you should remove nulls before you separate X and y.

Before this:

X = df['text']
y = df['label']


Do this:

df.dropna(inplace=True)


And remove this:

X_train.dropna(inplace=True)
X_test.dropna(inplace=True)
y_train.dropna(inplace=True)
y_test.dropna(inplace=True)