Git Product home page Git Product logo

etl-challenge's Introduction

etl-challenge

ETL: Retail Data Analysis

Group 21: Sam Ziegler, Steven Gaetz, Stephanie Richards

Dataset: https://www.kaggle.com/manjeetsingh/retaildataset?select=Features+data+set.csv

Extract: Using stores and sales .csv files, extract information and load into Pandas.

Transform: Combine sales figures for all departments in each store and sort by week.

Load: Create SQL database with two tables, one for sales and one for stores. Load pd dataframes to each table and use them to join and query.

Instructions to populate the database:

  1. Clone the 'etl-challenge' repository to your machine.

  2. Open pgAdmin. Create a new database called 'sales_db.'

  3. Open a query tool in 'sales_db' and navigate to the root directory of the 'etl-challenge' repository.

  4. Select the file 'queries.sql.'

  5. Run the code to drop tables if necessary.

  6. Run the code to create the 'stores' table and run the code to create the 'sales' table.

  7. Run select * from stores and select * from sales to ensure that the tables were created.

  8. Open a Jupyter Notebook in the 'etl-challenge' repository. Create a text file called 'config.py.' In this file, save your pgAdmin username and password as 'username' and 'password', respectively.

  9. Open 'Sales_ETL_Copy.ipynb.' Run all cells.

  10. In pgAdmin, run the code to join the tables.

etl-challenge's People

Contributors

swdrich avatar sgaetz1 avatar szig97 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.