/Bikeshare-Udacity

Python program to analyze a bike-share data set

Primary LanguagePythonThe UnlicenseUnlicense

Bikeshare Project

by Manpreet Kunnath

This is a Bikeshare Project created for Udacity's Machine Learning Foundation Nanodegree Program.

Description

This project is built using Python. It analyses the data to find out some interesting statistics. The questions are as follows:

  • What is the most popular month?
  • What is the most popular day of week?
  • What is the most popular hour of day?
  • What is the total trip duration and average trip duration?
  • What is the most popular start station and most popular end station?
  • What is the most popular trip?
  • What are the counts of each user type?
  • What are the counts of gender?
  • What are the earliest, most recent, and most popular birth years?

Contents

The contents of the project are:

  • bikeshare.py - The main file to run this project

You can get the dataset for this project from this location. It contains data for three cities.

  • chicago.csv
  • new_york_city.csv
  • washington.csv

Requirements

Python 3 is required to run this project

How to run

Download the project locally on your computer. Extract the project and navigate to the project directory. Place the datasets in this directory

Open either the terminal in Linux or command prompt in Windowns in this location and type the following command.

python bikeshare.py

The program will execute

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org>