My code:
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
BMI = pd.read_csv('c://500_Person_Gender_Height_Weight_Index.csv')
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(BMI, BMI.gender_lbl, test_size=0.3,random_state=42)
from sklearn.naive_bayes import GaussianNB
gnb = GaussianNB()
gnb.fit(X_train, y_train) --> shows error
y_pred = gnb.predict(X_test)
y_pred
I am not sure of what to do here. If anyone could help would be very much appreciated. Thank you.