How do I load a excel file from my system in SciKit for train and test.
I tried pandas for importing, i was able to import it using
data=pd.read_excel("IRIS.xlsx")
print(data.head())
but then am not able to perform this line
X,y=data(return_X_y=True)
giving me a dataframe error.
what should i do or import before this line so i am able to carry out train and test successfully
code and error