This program takes data from the bikeshare database in the 3 states of Chicago, Washington and New York cities and provides users with some basic data analysis.
The files used in this program include:
- bikeshare.py
- chicago.csv
- washington.csv
- new_york_city.csv
This code is made up of six functions:
- The main function: Calls on the other 5 functions and prints the results of the analysis
- get filters function: Prompts users to supply input. Note that the inputs are not case sensitive.
- time stats function: Calculates time statistics
- station stats function: Calculates the stations statistics
- trip duration stats function: Calculates duration statistics
- user stats: Calculates bikeshare user statistics
Future improvement work is to display only five lines of results and to prompts the user to request more data or exit if satisfied.
I would to acknowledge Stack overflow from where I took a number of ideas and codes and modified them for my purpose. Also I would like to thank Udacity Students Hub for reviewing and commenting on various aspects of this code. Their suggestions and steers helped me to successfully complete this project.