Project Overview

📜 Description

This project involves a detailed analysis of layoff data to gain insights into trends, patterns, and impacts across various dimensions such as companies, locations, industries, and stages. We have utilized SQL to extract, transform, and analyze data performing a range of queries to uncover valuable metrics and trends. The project includes data cleaning, duplicate removal, and sophisticated analysis to understand the severity and distribution of layoffs.

Tools and Techniques

Data Import

Python Script Overview

This script is designed to efficiently import data from a CSV file into a PostgreSQL database. It uses the psycopg2 library for database connectivity and manipulation.

Packages Used

Usage

  1. Setup Connection: Establish a connection to PostgreSQL.
  2. Table Creation: Ensure the target table is present in the database.
  3. CSV Reading: Load CSV data into a DataFrame.
  4. Data Insertion: Insert the data into the PostgreSQL table.

Script to Load the Data

Code Snippet

About the Data