Code Monkey home page Code Monkey logo

presto-eda's Introduction

Presto cost exploratory analysis

This repo is the result of me trying to figure out if I should reinvest in the TTC Metropass Discount Program now that Presto is out:

png

Setup

Clone this repository:

Either fork or clone this repository to your local machine

Download your Presto transactions

  1. Go to https://www.prestocard.ca/en/
  2. Login and click on Card Activity
  3. Change the Date Range to the earliest and latest dates possible
  4. Click View to apply the new date range filter
  5. Scroll down to the bottom and click Export to CSV
  6. Save the CSV file to the /notebooks/ subdirectory of the cloned repository

Python Environment

If you don't have Python and/or Conda, install miniconda for your platform. Then create the environment in a terminal with:

conda create -n py3-geovis python=3 jupyter pandas matplotlib
conda activate py3-geovis
cd /path/to/cloned/repo/notebooks/
jupyter-notebook

Running the code

In the Jupyter Home interface, find and open the presto_costs.ipynb notebook and run the cells to see some information on your Presto history and whether or not you should have bought a MDP.

To quit from the presto_costs notebook, use File -> Close and Halt which will return you to the Jupyter Home interface. You can then use the Quit button to close and shutdown Jupyter.

To quit from anywhere, use Ctrl-C within the terminal that is running Jupyter.

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.