Giter Site home page Giter Site logo

nardyjh / home_sales Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 1.28 MB

Spark Home Sales Analysis utilizes Apache Spark to explore and analyze home sales data, providing insights into average prices based on various criteria. The project employs Spark SQL queries for efficient data processing and is designed for easy setup and usage.

Jupyter Notebook 100.00%
bigdataanalytics data-science pyspark spark-sql sqlqueries

home_sales's Introduction

Spark Home Sales Analysis

This project utilizes Apache Spark for analyzing a dataset containing information about home sales. It includes various Spark SQL queries for data exploration and provides insights into the average prices of homes based on different criteria.

Table of Contents

Overview

This Spark project aims to analyze home sales data using Spark SQL queries. It provides insights into the average prices of homes based on various criteria, such as the number of bedrooms, bathrooms, floors, and square footage.

Prerequisites

Before running the code, ensure you have the following prerequisites:

  • Apache Spark installed
  • Python with PySpark

Getting Started

Installation

Install Apache Spark and set up PySpark on your machine.

Running the Code

Clone this repository and run the Spark script using PySpark.

Usage

1. Data Loading

The project reads data from an AWS S3 bucket into a Spark DataFrame.

2. Temporary Table Creation

A temporary view named 'home_sales' is created from the DataFrame.

3. Queries

Several Spark SQL queries are executed to analyze the data, including:

  • Average price for a four-bedroom house sold in each year.
  • Average price of a home with three bedrooms and three bathrooms.
  • Average price of a home with specific criteria (bedrooms, bathrooms, floors, and square footage) for each year built.
  • View rating for the average price of homes with prices greater than or equal to $350,000.

4. Caching

The 'home_sales' table is cached for improved performance.

5. Parquet Data

The script partitions the home sales dataset by the "date_built" field and reads the formatted parquet data.

6. Uncaching

The 'home_sales' table is uncached when necessary.

Acknowledgements

Data for this dataset was generated by edX Boot Camps LLC, and is intended for educational purposes only - University of Toronto.

home_sales's People

Contributors

nardyjh avatar

Watchers

 avatar

Forkers

mlbarathy

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.