Coder Social home page Coder Social logo

ava33343 / ocean_breeze_for_life Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 19.78 MB

Create a dashboard to visualize housing market in San Francisco neighborhoods. Parallel categories, coordinates and neighborhood maps are created on annual housing units, average gross rent and sales prices. Visuals in line and scaled bar charts are also created using Matplotlib and hvplot libraries.

License: Apache License 2.0

Jupyter Notebook 100.00% Shell 0.01%
dashboard pyviz mapbox panel matplotlib os plotly plotly-express api hvplot

ocean_breeze_for_life's Introduction

Ocean Breeze for Life

Interactive Dashboard Leveraging Pyviz and Panel Design

Look for sunshine and ocean breeze? Warm San Francisco neighborhoods welcome you to join!

###Shall we buy low and sell high? Are you ready to invest for your own space or earn more money by leasing?

While a variety of factors play roles in decision making, our analysis leads to the conclusion that real estate investors are likely to profit from purchases in Petrero Hill, Cow Hollow, Presidio Heights and South Beach. For its low unit sales price, South Beach could be more appealing to beginners.

An analysis on housing markets in San Francisco is carried out with focuses on:

  • Gross rent
  • Sales price per square foot
  • Housing unit supplies from 2010 to 2016.

Python is used to create a panel dashbord at the end of the project. Visual illustrations are produced using bokeh features in functions such as hvplot and plotly express.

First of all, bar charts and line plots are generated on yearly supplies, gross rents and unit sales price of San Francisco housing. See Figures 1a to 3b for displays. They are followed by an interactive line graph on yearly sales price per square foot based on neighborhoods (Figure 4).

Averages on on unit sales prices over the six-year window are used to determine the top 10 most expensive neighborhoods in San Francisco (Figure 5). From the most to the least expensive, they are:

  • Union Square District, Merced Heights, Miraloma Park, Pacific Heights, Westwood Park, Telegraph Hill, Presidio Heights, Cow Hollow, Potrero Hill and South Beach

Comprehensive analysis are carried out to compare sales prices per square foot, gross rent, housing unit supplies based on their neighborhood locations. Three interactive plots, Figure 6a, 6b and 7, are produced for the comparisons.

What is our conclusion? There is no easy answer because it is a personal decision on where to live. However, neighborhoods that are high in gross rents may be profitable investment. Figure 7 suggests gross rents grow higher as it approaches the ocean. The sales price per square foot rise simultaneously, indicated by the size of the blue dots. According to Figure 6b, looking for housing with low unit sales price and high gross rents, it is suggested that Petrero Hill, Cow Hollow, Presidio Heights and South Beach are the top four potentially profitable choices for investments. In addition, there are more housing units available for those four neighborhoods. It could lead to smoother process to purchase. On the other hand, houses may be in grande sizes in those areas. While South Beach offers the lowest sales price per square foot, the earnings slope appears to be less steep compared to the other three. That could win more popularity amoung real estate investors in their early careers.

###After running the "panel serve dashboard.ipynb" by executing ". run.sh" in command, Figures created from hvplot are displayed in the panel However, the panel does not display corresponding figures from plotly express.

The design is as follows

Clicking on the tabs, one is directed to visual representation for one of the four categories below:

  • Housing Units Supply of San Francisco from 2010 to 2016
    • Tab_Supply.png
  • Yearly Gross Rent vs Sales Price per Square Foot
    • Bar Charts and Line Plots
  • Sales Price per Square Foot based on Neighborhoods in San Francisco
    • Interactive unit price for neighborhoods
    • Top 10 most expensive neighborhoods represented using in a bar chart
    • Tab_Neighborhood.png
  • Analysis of the interactions between the supply, gross rent, unit sales price, based on geographical locations
    • Parallel Coordinates Plot, color coded for unit sales price
    • Parallel Categories Plots, color coded for unit sales price
    • Map Box Scatter Plot based on neighborhoods, sized to represent unit sales price, color-coded on gross rent.
    • Tab_Intro.png

Figures produced on San Francisco Housing Market Analysis for years 2010 to 2016 are show below:

Fig_1a.png Fig_1b.png Fig_2a.png Fig_2b.png Fig_3a.png Fig_3b.png Fig_4.png Fig_5.png Fig_6a.png Fig_6b.png Fig_7.png

References:

ocean_breeze_for_life's People

Contributors

ava33343 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.