How to fix 'tuple index out of range' error on sklearn fit_transform?
Brother everything is perfect but you need to reshape your dataset.
By adding that code of line
output_data = temp.reshape(-1, 1)
output_data = dataset.iloc[:,9].values
#Encoding the categorical output data (There is no categorical input data)
one_hot_encoder = OneHotEncoder(categorical_features = [0])
#Reshape dataset before apply fit_transform function
output_data = temp.reshape(-1, 1)
output_data = one_hot_encoder.fit_transform(output_data).toarray()