Giter VIP home page Giter VIP logo

yashkansal97 / la_energy_water_analysis Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 2.83 MB

Analysis of Energy and Water Consumption data for the City of Los Angeles. The focus is on different buildings and building types to understand the contributing factors to energy and water use consumption and in turn, suggest levers for energy and water use reduction and ideas for further analysis for the City.

Jupyter Notebook 100.00%
carbon-emissions data-science data-visualization energy-consumption water-use

la_energy_water_analysis's Introduction

Energy and Water Consumption Analysis for Buildings in LA

Team Members: Yash Kansal, Meera G K, Yeyan Wang, Crystal Wang, Shweta Joshi

Project Description/Outline:

We will be analyzing the Socrata Energy and Water Consumption open source data for the City of Los Angeles. We will be focusing on different buildings across the City of LA and try to understand which factors contribute most to energy and water use consumption in the buildings and in turn, which levers could be used by the city to reduce the said consumptions.

Research Questions to Answer:

Question 1: Which 5 property types have the highest correlation between Water Use and Carbon Emissions, and Source Energy Use Intensity (Source EUI) and Carbon Emissions?
Question 2: What property type has highest source energy use intensity and water use per square footage for buildings built after the year of 2000?
Question 3: Does any property type have a correlation between Water Use and Gross Building Floor Area (GFA), and if there is a correlation, what is the relationship between for building type with highest correlation value?
Question 4: For multi-family housing building type, check if there is a relationship between year built and source EUI, as well as year built and water use per square foot?

Procedure of Analysis:

Data Cleaning

  1. Pull dataframe from the Socratas API, and create a new dataframe that only includes columns needed and drop rows with the NaN and "Not Available" values
  2. Change the data type to float for columns with numerical values
  3. Drop any properties with "0" occupancy
  4. Find out number of buildings for each property type and determine which property types have at least 300 data points so the data is not affected by rarely occurring properties
  5. Create a new data frame with only highly frequent property types

Steps For Question 1:

  1. Calculate the correlation between Water Use vs Carbon Emissions, and Source EUI vs Carbon Emissions for each building type
  2. Determine the top 5 property types with the highest (+ or -) correlation values, display the top 5 highly correlated property types for water consumption vs. Carbon Dioxide Emissions and the top 5 highly correlated property types for source EUI vs. Carbon Dioxide Emissions using bar graphs

image image

  1. Use scatter plots, linear regression lines, and r-value to examine each relationship

image image

Steps For Question 2:

  1. Create another dataframe that only has columns we will need to find water and energy use intensity for each building type and show buildings built only after 2000
  2. Calculate the water use intensity (kgal/sq-ft) by dividing total water use by gross building floor area and add these values to another column in the dataframe.
  3. Find out which building type has the highest median water consumption and highest median source energy consumption using groupby function
  4. Use bar plots to compare the median values for different bulding types

image image

Steps For Question 3:

  1. Find the correlation between water use and gross building floor area for different building types
  2. Print the building type with the highest correlation between water use and gross building floor area
  3. Plot the correlation values for different building type

image

  1. Plot Gross Building Floor Area vs Water Use for Manufacturing/Industrial Plants (instead of Mixed Use because by nature, the use of Mixed Use properties can vary a lot and it is hard to draw conclusions and guide policies)

image

Steps For Question 4:

  1. Create bins for year built column based on decades
  2. Divide water use by property gross footage area and filter dataframe by Multifamily housing
  3. Calculate median energy and water use for each bin, i.e., each decade using groupby function
  4. Use line plot to see the trends for water use intensity and energy use intensity

image image

Conclusions:

  1. For water use and carbon emissions, there appears to be a relatively strong positive correlation for Parking buildings, where the correlation coefficient between the two variables is 0.7173057056152874. For source energy use and carbon emissions, there appears to be a very strong positive correlation for Retail Stores, where the correlation coefficient between the two variables is 0.9830449798002524. It seems that CO2e have a stronger relationship to Source EUI and accordingly, the focus should be on reducing Source EUI to reduce carbon emissions.
  2. Hotel has the highest water consumption per sq-ft, with a value of 8115.6 kgal/sq-ft for building built after 2000. Medical Office has the highest energy consumption per sq-ft, with a value of 168.6 kgal/sq-ft for buildings built after 2000. Overall, new Hotels have high water and energy use and therefore, more measures should be taken to regulate energy and water consumption at new Hotels.
  3. For water use and gross building floor area, there appears to be a moderately strong positive correlation for Manufacturing/Industrial Plants, where the correlation coefficient between the two variables is 0.5215937191397046. Also, based on the correlation values, the focus should be on adapting more water conservation and reduction strategies at larger Medical Offices, Manufacturing Plants and Mixed Use Properties.
  4. The water usage intensity has decreased with year the property was built, however, no such trend is observed for energy use intensity. Accordingly, the city should start focusing on improving the energy usage trend or better understand why this trend hasn't changed.

la_energy_water_analysis's People

Contributors

crystalheihei avatar meerkar avatar shwetajoshi05 avatar yashkansal97 avatar yeyanwang avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

meerkar yeyanwang

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.