Giter Club home page Giter Club logo

migration_demo's Introduction

piechart.py

Python script which takes the .csv file as an input and analyzes the migrated accounts

Installation

macOS comes with python pre-installed but it is always better to check the version and stay updated. So run the following commands on terminal

For Python 2.7.x

which python
python --version
python -m pip --version

For Python 3.x.x

which python3
python3 --version
python3 -m pip --version

pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org. BUT If error pop-ups saying no pip was found, you will have to install it from Get pip

Use the package manager pip to install matplotlib and pandas by running commands

python -m pip install -U pip
python -m pip install -U matplotlib
pip install pandas

Usage

For the .csv file

  • Raise a TUNEUP ticket to create a read-only Member DB account for yourself on Production.
  • Follow steps mentioned on this OpenRoad page to setup your RedShift DB
  • Open zipcar > core > migration_accounts
  • Export the data as a .csv file in your local directory

To execute the program

Once python and pip modules installed (refer requirements.txt for details of packages to install) proceed with the following commands to execute the script

python piechart.py

If you have Python3 installed, run

python3 piechart.py

Upon prompt for input, enter the path to your locally stored .csv file

Enter the path of your .csv file : /Users/shuchitamishra/Desktop/Prod-Migration/migration_accounts_202105181812.csv

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Zipcar

migration_demo's People

Contributors

shuchita28 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.