Skip to content

cemegwa/pdsnd_github

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

This project was created and submitted on 6/28/2019

Bikeshare Data Analytics

Description

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.

Files used

The files used in this program include:

  • bikeshare.py
  • chicago.csv
  • washington.csv
  • new_york_city.csv

Code Description

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

Future improvement work is to display only five lines of results and to prompts the user to request more data or exit if satisfied.

Credits

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.

About

GitHub project (Project 3) repository for PDSND

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%