Last active
October 28, 2017 00:43
-
-
Save erikaris/675ad8acd73bdfe77182ea867a7a3fe5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified from Coursera.org | |
%matplotlib notebook | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
linear_data = np.array([1,2,3,4,5,6,7,8]) | |
exponential_data = linear_data**2 | |
plt.figure() | |
observation_dates4 = list(map(pd.to_datetime, np.arange('2017-03-01', '2017-03-09', dtype='datetime64[D]'))) | |
plt.plot(observation_dates4, linear_data, '-o', observation_dates4, exponential_data, '-o') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment