#!/usr/bin/env python
# coding: utf-8
#
#
What is the Going Trend in the Rental Market - Hollister CA?
#
#
#
#
#
#
#
#
#
#
#
#
#
# Hello!
# I’m Mikaela Rojas!
#
#
# Thank you for choosing me as your South Bay Realtor! Let's take a
# a look at Hollister CA Rental Prices for the year so far.
#
#
#
#
#
# In[1]:
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[2]:
# grab Zillow data
# Hollister,CA,San Jose,San Benito|00800
# RAH = Estimated Rent, All Homes in Region
df = pd.read_csv('http://www.quandl.com/api/v3/datasets/ZILL/C00800_RAH.csv')
df.head();
# In[3]:
# convert to date format
df['Date'] = pd.to_datetime(df['Date'])
# In[4]:
# rename columns
df.columns = ['Date','Rent']
# In[5]:
# set Date to be the index
df = df.set_index('Date')
# ## What was the Highest Estimated Rental Price?
#
# > It was January 31st!
# In[6]:
df[df['Rent'] == df.values.max()]
# ## Rental Prices are still on the rise in 2017!
# In[7]:
mask = df.index >= pd.to_datetime('1/1/2016')
df[mask].sort_index().plot(figsize=(15,5));
#
#
#
# the information came from quandl and Zillow
#
# In[8]:
from IPython.display import HTML
HTML('''
''')