Well i am trying to print the predictions next to the actual test data so i can read them better but i get KeyError: 0 in google colab
#this works
pred = linear.predict(X_test)
print(pred)
for x in range(len(pred)):
print(pred[x])
#this doesnt, i've seen this in a Python Machine Learning Tutorial and it works fine
for x in range(len(pred)):
print(pred[x],X_test[x],y_test[x])
