Skip to content

The goal of this dashboard is to provide charts, maps, and interactive visualizations that help customers explore the data and determine if they want to invest in rental properties in San Francisco.

Notifications You must be signed in to change notification settings

dtcosta/PyViz_Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyViz Dashboard Analysis of San Francisco Real Estate

San Francisco Park Reading

San Francisco Park Reading by Juan Salamanca | Free License

Background

The goal of this dashboard is to provide charts, maps, and interactive visualizations that help customers explore the data and determine if they want to invest in rental properties in San Francisco. We will do so by completing the following tasks:

  1. Complete a notebook of rental analysis.

  2. Create a dashboard of interactive visualizations to explore the market data.


Files

Instructions

Rental Analysis

The first step to building the dashboard is to work out all of the calculations and visualizations in an analysis notebook. Once the code is worked out here, it can be copied over to a dashboard code and used with Panel to create the final layout.

Housing Units Per Year

Calculate the number of housing units per year and visualize the results as a bar chart using the Pandas plot function.

Default Bar Chart

unscaled-bar.png

Bar Chart with y-axis limits adjusted

scaled-bar.png

Average Housing Costs in San Francisco Per Year

Determine the average sales price per year and the average gross rent per year to better understand housing costs over time.

  1. Calculate the mean gross_rent and sale_price_sqr_foot for each year.
  2. Visualize the mean gross_rent and sale_price_sqr_foot for each year as two line charts.

gross-rent.png

average-sales.png

Average Prices By Neighborhood

Use hvplot to create two interactive visulizations of average prices with a dropdown selector for the neighborhood. The first visualization will be a line plot showing the trend of average price per square foot over time for each neighborhood. The second will be a line plot showing the trend of average montly rent over time for each neighborhood.

avg-price-neighborhood.png

gross-rent-neighborhood.png

Top 10 Most Expensive Neighborhoods

Calculate the mean sale price for each neighborhood and then sort the values to obtain the top 10 most expensive neighborhoods on average. Plot the results as a bar chart.

top-10-expensive-neighborhoods.png

Comparing Cost to Purchase Versus Rental Income

Use hvplot to create an interactive visualization with a dropdown selector for the neighborhood. This visualization will feature a side-by-side comparison of average price per square foot versus average monthly rent by year.

rent-versus-price

Neighborhood Map

Read in neighborhood location data and build an interactive map with the average prices per neighborhood. Use a scatter mapbox object from plotly express to create the visualization.

neighborhood-map.png

Cost Analysis

Use plotly express to create a Parallel Coordinates plot, Parallel Categories plot, and a Sunburst plot so that investors can interactively filter and explore various factors related to the sales price of the neighborhoods. Using the provided DataFrame to create the following visualizations:

  1. Parallel Coordinates Plot.

parallel-coordinates.png

  1. Parallel Categories Plot.

parallel-categories.png

  1. Sunburst plot to show the most expensive neighborhoods in San Francisco per year.

    sunburst


Dashboard

Final Output

dashboard-demo.gif


About

The goal of this dashboard is to provide charts, maps, and interactive visualizations that help customers explore the data and determine if they want to invest in rental properties in San Francisco.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published