San Francisco Park Reading by Juan Salamanca | Free License
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:
- sfo_neighborhoods_census_data.csv
- neighborhoods_coordinates.csv
- Rental Analysis Starter Jupyter Notebook
- Dashboard Starter Jupyter Notebook
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.
Calculate the number of housing units per year and visualize the results as a bar chart using the Pandas plot function.
Default Bar Chart
Bar Chart with y-axis limits adjusted
Determine the average sales price per year and the average gross rent per year to better understand housing costs over time.
- Calculate the mean
gross_rent
andsale_price_sqr_foot
for each year. - Visualize the mean
gross_rent
andsale_price_sqr_foot
for each year as two line charts.
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.
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.
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.
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.
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:
- Parallel Coordinates Plot.
- Parallel Categories Plot.
Final Output