Atribuindo X e Y usando o Índice .iloc
X=data.iloc[:,[0,1,2,3,5,6]]#<class 'pandas.core.frame.DataFrame'>
y=data.iloc[:,4]#<class 'pandas.core.series.Series'> as y has only one column it is a series
Helpful Hare