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.
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.
psycopg2
: A popular PostgreSQL adapter for Python, enabling interaction with PostgreSQL databases.pandas
: Provides data manipulation capabilities, allowing for easy reading and processing of CSV files.