Well, you can use linear regression for this to check that there is a correlation between the x and y values. With the library scikit-learn you can make a linear regression model and plot the data with the library matplotlib.