Adding other economic indicators - p.14 Data Analysis with Python and Pandas Tutorial

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=pxZy5jHID_A



Category:
Tutorial
Duration: 14:03
21,157 views
195


Hello everyone and welcome to Part 14 of our Data Analysis with Python and Pandas for Real Estate investing tutorial series. We've come quite a long ways here, and the next, and final, macro step that we want to take here involves looking into economic indicators to see their impact on housing prices, or the HPI.

Text based version of this tutorial and sample code: http://pythonprogramming.net/economic-factors-data-analysis-python-pandas-tutorial/

There are two major economic indicators that come to mind out the gate: S&P 500 index (stock market) and GDP (Gross Domestic Product). I suspect the S&P 500 to be more correlated than the GDP, but the GDP is usually a better overall economic indicator, so I may be wrong. Another macro indicator that I suspect might have value here is the unemployment rate. If you're unemployed, you're probably not getting that mortgage. We'll see though. We've been through the process for adding more data points, so I do not see much point in dragging you all through this process. There will be one new thing to note, however. In the HPI_Benchmark() function, we're changing the "United States" column to be US_HPI. This makes a bit more sense when we're bringing in other values now.

For GDP, I couldn't find one that encompassed the full time frame. I am sure you can find a dataset, somewhere, with this data, maybe even on Quandl. Sometimes you have to do some digging. I also had trouble finding a nice long-term monthly unemployment rate. I did find an unemployment level, but we really want more of a percentage/rate, otherwise we need to divide the unemployment level by the population. We could do that if we decide unemployment rate is worth having, but we'll work with what we get first.

http://pythonprogramming.net
https://twitter.com/sentdex




Other Videos By sentdex


2015-12-11Pygal SVG embedded Graphs - Flask Web Development with Python 33
2015-12-08jQuery with Flask - Flask Web Development with Python 32
2015-12-06Protected directories and Files - Flask Web Development with Python 31
2015-11-30Return Files with send_file - Flask Web Development with Python 30
2015-11-27Flask Mail - Flask Web Development with Python 29
2015-11-23URL Converters - Flask Web Development with Python 28
2015-11-18Jinja Templating Cont'd - Flask Web Development with Python 27
2015-11-16Includes - Flask Web Development with Python 26
2015-11-08Scikit Learn Incorporation - p.16 Data Analysis with Python and Pandas Tutorial
2015-11-03Rolling Apply and Mapping Functions - p.15 Data Analysis with Python and Pandas Tutorial
2015-10-29Adding other economic indicators - p.14 Data Analysis with Python and Pandas Tutorial
2015-10-27Joining 30 year mortgage rate - p.13 Data Analysis with Python and Pandas Tutorial
2015-10-21Applying Comparison Operators to DataFrame - p.12 Data Analysis with Python and Pandas Tutorial
2015-10-17Rolling statistics - p.11 Data Analysis with Python and Pandas Tutorial
2015-10-12Handling Missing Data - p.10 Data Analysis with Python and Pandas Tutorial
2015-10-09Resampling - p.9 Data Analysis with Python and Pandas Tutorial
2015-10-05Percent Change and Correlation Tables - p.8 Data Analysis with Python and Pandas Tutorial
2015-10-03Pickling - p.7 Data Analysis with Python and Pandas Tutorial
2015-09-29Joining and Merging Dataframes - p.6 Data Analysis with Python and Pandas Tutorial
2015-09-25Concatenating and Appending dataframes - p.5 Data Analysis with Python and Pandas Tutorial
2015-09-23Building dataset - p.4 Data Analysis with Python and Pandas Tutorial



Tags:
Pandas
Python (Programming Language)
Data Analysis (Media Genre)