Machine Learning, Data Science, Artificial Intelligence, Programming, Technology.
(Year) on the x-axis, and the dependent variable y (Value) on the y-axis. plt.figure(figsize=(8,5)) X_data, y_data = (df['Year'].values, df['Value'].values) plt.plot(X_data, y_data, 'ro') plt.suptitle('Graph showing corresponding years and GDP values for China', y=1.02) plt.ylabel('GDP')