Giter Site home page Giter Site logo

pdsnd_github's Introduction

Bikeshare

Bikeshare is a simple script that analyzes the Bikeshare dataset and displays valuable statistics.

Dependencies

This project has the following requirements:

  • Python 3.6 or higher
  • Pandas
  • Bikeshare dataset (see the dataset section)

Installation

Clone the GitHub repository and execute the main script:

$ git clone https://github.com/haggag/pdsnd_github.git
$ cd pdsnd_github
$ python ./bikeshare.py

Usage

The Bikeshare program works by executing the bikeshare.py script. It then interactively asks the user for the required filters. Finally, the statistics are computed and displayed on the terminal.

Statistics Computed

The following descriptive statistics are displayed:

  1. Popular times of travel (i.e., occurs most often at the start time)
    • Most common month.
    • Most common day of the week.
    • Most common hour of the day.
  2. Popular stations and trip
    • Most common start station.
    • Most common end station.
    • Most common trip from start to end (i.e., most frequent combination of start and end stations).
  3. Trip duration
    • Total travel time.
    • Average travel time.
  4. User info
    • Counts of each user type.
    • Counts of each gender (only available for NYC and Chicago).
    • Earliest, most recent, most common birth year (only available for NYC and Chicago).

Dataset

This project analyzes data provided by Motivate, a bike share system provider for many major cities in the United States, to uncover bike share usage patterns.

The required dataset was created by randomly selecting data for the first six months of 2017 provided for Chicago, New York City, and Washington, DC. The data can be downloaded from Udacity as 3 CSV files. All three files contain the same core six columns:

  • Start Time (e.g., 2017-01-01 00:07:57)
  • End Time (e.g., 2017-01-01 00:20:53)
  • Trip Duration (in seconds - e.g., 776)
  • Start Station (e.g., Broadway & Barry Ave)
  • End Station (e.g., Sedgwick St & North Ave)
  • User Type (Subscriber or Customer)

The Chicago and New York City files also have the following two columns:

  • Gender
  • Birth Year

Credits

The following resources were consulted during the project implementation:

  • Udacity Python lessons
  • Pandas documentation

License

The Bikeshare program is distributed under the MIT license.

pdsnd_github's People

Contributors

haggag avatar sudkul avatar rbudacprojects 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.