Skip to content

choopes1/pdsnd_github

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Project Date: 10/10/2018
README Date: 11/06/2018

Using Python to Explore US Bikeshare Data

Requirements

The Python script was created using Python 3.7, which can be installed with the Anaconda installer here.

Description

I created this Python script to explore data related to bicycle-sharing systems for three cities - Chicago, New York City, and Washington. This was a project for the Udacity Programming for Data Science Nanodegree (PDSND).

The code uses randomly selected data for the first six months of 2017 provided by Motivate, a bikeshare system provider for many major cities in the United States. All three of the csv datasets contain the same six core columns:

  • Start Time
  • End Time
  • Trip Duration
  • Start Station
  • End Station
  • User Type

The Chicago and New York City datasets also contain the following two columns:

  • Gender
  • Birth Year

The code computes and displays the following statistics, based on raw input from the user:

Popular times of travel
  • most common month
  • most common day of week
  • most common hour of day
Popular stations and trip
  • most common start station
  • most common end station
  • most common hour of day
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 station and end station)
Trip duration
  • total travel time
  • average travel time
User info
  • counts of each user type
  • counts of each gender (only available for NYC and Chicago)
  • earliest, most recent, most common year of birth (only available for NYC and Chicago)

Files used

  1. bikeshare.py
  2. csv datasets

Credits

README format:
https://github.com/xhlow/udacity-bikeshare-project

Convert seconds to days, hours, minutes, and seconds:
https://stackoverflow.com/questions/775049/how-do-i-convert-seconds-to-hours-minutes-and-seconds

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%