Problem: I am getting the error “typeerror: unhashable type: 'slice'’ when I run the program below import numpy as np import matplotlib.pyplot as plt import pandas as pd dataset = pd.read_csv('50_Startups.csv') y=dataset.iloc[:, 4] X=dataset ... OneHotEncoder labelencoder_X = LabelEncoder() X[:, 3] = labelencoder_X.fit_transform(X[:, 3]) Your solution would be much appreciated. Thanks
asked
Mar 7, 2020
Gavin
15.3k points