Introduction to Data Analysis in Python

In [1]:
import pandas as pd
from pandas import Series
In [2]:
import matplotlib.pyplot as plt
In [3]:
temperature = pd.read_csv(
    "https://milliams.com/courses/data_analysis_python/cetml1659on.txt",  # file name
    skiprows=6,  # skip header
    delim_whitespace=True,  # whitespace separated
    na_values=['-99.9', '-99.99'],  # NaNs
)
In [4]:
year_plot = temperature.plot.scatter("JAN", "FEB")

plt.show()

There is some sense of correlation between the two months. Years with a warmer January tended to have a warmer February.