Found input variables with inconsistent numbers of samples error : [199364, 85443]

i am facing the above error when i try to fit my random forest classifier model. below is the code;

from sklearn.model_selection import train_test_split
X = df.drop(['Class'], axis=1)
y = df['Class']
X = df.drop(['Class'], axis=1)
y = df['Class']
from sklearn.ensemble import RandomForestClassifier
rfc = RandomForestClassifier()
model=rfc.fit(X_train,y_train)

but i keep on getting the below error;

ValueError: Found input variables with inconsistent numbers of samples: [199364, 85443]

what could i be doing wrong because the X.shape and y.shape seems to be okay, all with the same size as seen below;

X.shape

(284807, 30)

y.shape

(284807,)
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum