Giter Site home page Giter Site logo

azubi_casestudy_sakila_wk6's Introduction

Requirements

You are to connect to a remote database using python code. Properly set up your connection to the database using the database credentials provided below. It is a must to hide sensitive information like password, hostname, username, etc. using environment variables. Once your setup is done, query the database to answer the following analytical questions by writing an SQL query in your Jupyter notebook and supply the appropriate visualization.

Questions

  1. Determine how much we made in revenue from active and inactive members. Visualize the result as a bar chart.
  2. We have 2 staff members, Mike and Jon. Determine the staff member that contributed the most to our revenue in the month of August in 2005. Visualize their percentage contribution as a pie chart.
  3. Create a simple line chart showing the monthly rental count of the store. Do you notice any patterns or trends?
  4. Create a basic bar chart to show the monthly revenue for the rental store.

Install needed packages

%pip install sqlalchemy mysqlclient mysql-connector-python python-dotenv

Summary

Store 1:

  • May 2005: 2,459.25 rental revenue.
  • June 2005: Increases to 4,734.79.
  • July 2005: Peaks at 14,308.66.
  • August 2005: Maintains strong revenue at 11,933.99.
  • September 2005 to January 2006: No recorded revenue, indicating inactivity.
  • February 2006: Revenue resumes at 243.10.

Store 2:

  • May 2005: 2,364.19 rental revenue.
  • June 2005: Increases to 4,895.10.
  • July 2005: Peaks at 14,060.25.
  • August 2005: Maintains strong revenue at 12,136.15.
  • September 2005 to January 2006: No recorded revenue, indicating inactivity.
  • February 2006: Revenue resumes at 271.08.

azubi_casestudy_sakila_wk6's People

Contributors

d0ng4667 avatar

Watchers

 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.