I already referred these posts here and here and tried to plot the line of best fit for my linear regression problem.
So, my data shape looks like below
My code to plot the best fit line looks like below
plt.scatter(X_test.values, Y_test.values, color="black") # throws error in this line
plt.plot(Y_test, y_pred, color="blue", linewidth=3)
plt.xticks(())
plt.yticks(())
plt.show()
ValueError: x and y must be the same size
update - output