bikeshare.py
def station_stats(fdf):
    """Displays statistics on the most popular stations and trip.
    Args:
        dataframe

    """
    print('\nCalculating The Most Popular Stations and Trip...\n')
    start_time = time.time()

    # display most commonly used start station
    mcus = fdf['Start Station'].mode()[0] # most common start station
    print(mcus + " is the most common start station")
    # display most commonly used end station
    mces = fdf['End Station'].mode()[0] # most common end station
    print(mces + " is the most common end station")
    # display most frequent combination of start station and end station trip
    mc_trip = fdf['trip'].mode()[0] # most common trip
    print("The most common trip is " + mc_trip)

    print("\nThis took %s seconds." % (time.time() - start_time))
    print('-'*40)
Displays statistics on the most popular stations and trip.
    Args:
        dataframe

    
Displays statistics on the most popular stations and trip.
Args:
dataframe
Displays statistics on the most popular stations and trip . Args : dataframe
def station_stats(fdf):
    print('\nCalculating The Most Popular Stations and Trip...\n')
    start_time = time.time()
    mcus = fdf['Start Station'].mode()[0] 
    print(mcus + " is the most common start station")
    mces = fdf['End Station'].mode()[0] 
    print(mces + " is the most common end station")
    mc_trip = fdf['trip'].mode()[0] 
    print("The most common trip is " + mc_trip)
    print("\nThis took %s seconds." % (time.time() - start_time))
    print('-'*40)
def station_stats ( fdf ) : print ( '\nCalculating The Most Popular Stations and Trip...\n' ) start_time = time . time ( ) mcus = fdf [ 'Start Station' ] . mode ( ) [ 0 ] print ( mcus + " is the most common start station" ) mces = fdf [ 'End Station' ] . mode ( ) [ 0 ] print ( mces + " is the most common end station" ) mc_trip = fdf [ 'trip' ] . mode ( ) [ 0 ] print ( "The most common trip is " + mc_trip ) print ( "\nThis took %s seconds." % ( time . time ( ) - start_time ) ) print ( '-' * 40 )
Displays statistics on the most popular stations and trip.
Displays statistics on the most popular stations and trip .
"""Displays statistics on the most popular stations and trip.
    Args:
        dataframe

    """ # display most commonly used start station
 # most common start station
 # display most commonly used end station
 # most common end station
 # display most frequent combination of start station and end station trip
 # most common trip

fdf