Answers for "monthly precipitation in python"

0

monthly precipitation in python

from scipy import stats

slope, intercept, r_value, p_value, std_err = stats.linregress(years, mean_rainfall_per_year)

pyplot.plot(years, mean_rainfall_per_year, 'b-', label='Data')
pyplot.plot(years, intercept + slope*years, 'k-', label='Linear Regression')
pyplot.xlabel('Year')
pyplot.ylabel('Mean rainfall')
pyplot.legend();
Posted by: Guest on January-11-2021

Code answers related to "monthly precipitation in python"

Python Answers by Framework

Browse Popular Code Answers by Language