Predicting yearly income with linear regression using Python
Try:

from sklearn.linear_model import LinearRegression
import numpy as np
regression_model = LinearRegression()
Year = np.array([[1970], [1971], [1972]]) #your data
Income = np.array([3399.299037, 3768.297935, 4251.175484]) #your data
regression_model.fit(Year, Income)
regression_model.predict([[1973]]) #make predictions