#!/usr/bin/env python
# coding: utf-8
#
#
Did Home Prices in Morgan Hill CA Rise in 2016?
#
#
#
#
#
#
#
#
#
#
#
#
#
# Hello!
# I’m Mikaela Rojas!
#
#
# Thank you for choosing me as your South Bay Realtor! Let's take a
# a look at Morgan Hill CA Home Prices & Home Values for the year 2016.
#
#
#
#
#
# In[4]:
import pandas as pd
import matplotlib.pyplot as plt # only needed for advanced plotting
plt.style.use('ggplot')
get_ipython().run_line_magic('matplotlib', 'inline')
# In[11]:
# grab Zillow data
# Morgan Hill,CA,San Jose,Santa Clara|01424
df = pd.read_csv('http://www.quandl.com/api/v3/datasets/ZILL/C01424_A.csv')
df.head();
# In[6]:
# convert to date format
df['Date'] = pd.to_datetime(df['Date'])
# In[7]:
# rename columns
df.columns = ['Date','Price']
# In[8]:
# set Date to be the index
df = df.set_index('Date')
# ## Prices have been steadily climbing since July of last year.
# In[9]:
df['2016'].sort_index().plot(figsize=(15,5));
#
#
#
# the information came from quandl and Zillow
#
# In[5]:
from IPython.display import HTML
HTML('''
''')