Skip to content

This project analyzes Airbnb listings in London, UK using SQL to uncover insights for a potential cleaning service for hosts. The data is imported into an SQLite database and explored with SQL queries.

Notifications You must be signed in to change notification settings

Ebe2024/AirBnB_SQL_Project

Repository files navigation

AirBnB SQL Project

πŸ’‘ Inspiration

The inspiration for this project was a curiosity-driven deep dive into AirBnB listing data. The goal was to identify market opportunities by finding hosts who might benefit from a cleaning and maintenance service.


The CSV files used in this project can be found at the following link: Google Drive.

πŸ“Œ Project Description

This project focuses on analyzing AirBnB listings in London, UK. After performing exploratory data analysis on the listings, the goal was to identify potential leads for a hypothetical new cleaning and maintenance service.

πŸ”Ž Guiding Questions

This project explores key questions to extract meaningful insights from the dataset:

1️⃣ What are the 10 most reviewed listings?
2️⃣ What are the top 5 most expensive neighbourhoods?
3️⃣ Are any hosts fully booked for March 2025, and which hosts have the least number of available dates in March 2025?
4️⃣ Who are the hosts with the least listings?
5️⃣ Identify some hosts which may benefit from a new cleaning service provider.


πŸ› οΈ Tech Stack

  • Database: SQLite3
  • Language: SQL

πŸ“Š Features

βœ… Relational database creation
βœ… Table creation and data import
βœ… Exploratory data analysis using SQL
βœ… Basic report generation for insights


πŸ“₯ Installation & Setup

  1. Download Data

  2. Set Up SQLite3

  3. Create the Database

    • Open SQLite3 and create a new database:
      sqlite3 airbnb_london.db
  4. Import the CSV Data into SQLite

    • Open SQLite shell and run:
      .mode csv
      .import 'calendar.csv' calendar
      .import 'listings.csv' listings
      .import 'listings-2.csv' listings_2
      .import 'neighbourhoods.csv' neighbourhoods
      .import 'reviews.csv' reviews
      .import 'reviews-2.csv' reviews_2
  5. Verify Data

    • Open SQLite and explore the data:
      SELECT * FROM listings LIMIT 5;
      
  6. Run SQL Queries

    • Open SQLite and explore the data:
      sqlite3 airbnb_london.db
    • Example query:
      SELECT host_id, host_name, AVG(review_scores_cleanliness) AS avg_cleanliness 
      FROM listings 
      GROUP BY host_id 
      ORDER BY avg_cleanliness DESC;

πŸš€ Usage

This project serves as a template for:

  • Importing web-scraped data into a relational database
  • Performing exploratory analysis on structured data
  • Extracting actionable insights from raw datasets

πŸ“Œ Notes

  • No contribution guidelines at the moment.
  • No specific license.

About

This project analyzes Airbnb listings in London, UK using SQL to uncover insights for a potential cleaning service for hosts. The data is imported into an SQLite database and explored with SQL queries.

Topics

Resources

Stars

Watchers

Forks