dataset = pd.read_csv('50_Startups.csv')
X = dataset.iloc[:, :-1]
Y = dataset.iloc[:, 4]
=> Remove .values and it will work
=> But this will just create a dataframe of those datasets and not objects so choose wisely
X = dataset.iloc[:, :-1]
Y = dataset.iloc[:, 4]
=> Remove .values and it will work
=> But this will just create a dataframe of those datasets and not objects so choose wisely