bikeshare.py
def print_filtered(fdf, month, months, day, days):
    '''Continuously asks the user if he wants to see the raw data, showing 5
    lines at a time.
    Args:
        Takes the dataframe, month, months, day, and days.
        These have already been previously entered through get_filters().
    Returns:
        Nothing, but prints the dataframe 5 lines by 5 lines.
    '''
    #filtered = fdf[(fdf['month'] == month) & (fdf['day'] == day)]
    #fdf = fdf[(fdf['month'] == month) & fdf['day'] == day]

    accepted_inputs = ['yes', 'no']
    m = months.get(month)
    d = days.get(day)
    view = str(input("Do you want to preview a section of the filtered DataFrame?\nAnswer with \'Yes\' or \'No\' \n")).lower().strip()
    pd.set_option('display.max_columns',13)
    if view == 'yes':
        #print the first 5 rows upon the user's request
        print("Below is the first 5 rows of the filtered DataFrame")
        filtered = fdf[(fdf.month == m) & (fdf.day == d)]
        print(filtered.iloc[:5, :])
        start = 0
        end = 5
        view_again = str(input("\nWould you like to view 5 more rows?\nPlease answer with \'Yes\' or \'No\' \n")).lower().strip()
        while view_again not in accepted_inputs:
            view_again = input("Please enter an appropriate input; either \'Yes\' or \'No\' \n").lower().strip()
        #the while loop to print until user does not want to continue
        while view_again == 'yes':
            start+=5
            end+=5
            print("\nBelow are the next 5 rows of the data")
            print(filtered.iloc[start:end, :])
            view_again = str(input("\nWould you like to view 5 more rows?\nPlease answer with \'Yes\' or \'No'\" \n")).lower().strip()
            #checking for unacceptable inputs
            while view_again not in accepted_inputs:
                view_again = input("Please enter an appropriate input; either \'Yes\' or \'No\' \n").lower().strip()

    else: print("You have chosen not to view any of the raw data")
Continuously asks the user if he wants to see the raw data, showing 5
    lines at a time.
    Args:
        Takes the dataframe, month, months, day, and days.
        These have already been previously entered through get_filters().
    Returns:
        Nothing, but prints the dataframe 5 lines by 5 lines.
    
Continuously asks the user if he wants to see the raw data, showing 5
lines at a time.
Args:
Takes the dataframe, month, months, day, and days.
These have already been previously entered through get_filters().
Returns:
Nothing, but prints the dataframe 5 lines by 5 lines.
Continuously asks the user if he wants to see the raw data showing 5 lines at a time . Args : Takes the dataframe month months day and days . These have already been previously entered through get_filters () . Returns : Nothing but prints the dataframe 5 lines by 5 lines .
def print_filtered(fdf, month, months, day, days):
    accepted_inputs = ['yes', 'no']
    m = months.get(month)
    d = days.get(day)
    view = str(input("Do you want to preview a section of the filtered DataFrame?\nAnswer with \'Yes\' or \'No\' \n")).lower().strip()
    pd.set_option('display.max_columns',13)
    if view == 'yes':
        print("Below is the first 5 rows of the filtered DataFrame")
        filtered = fdf[(fdf.month == m) & (fdf.day == d)]
        print(filtered.iloc[:5, :])
        start = 0
        end = 5
        view_again = str(input("\nWould you like to view 5 more rows?\nPlease answer with \'Yes\' or \'No\' \n")).lower().strip()
        while view_again not in accepted_inputs:
            view_again = input("Please enter an appropriate input; either \'Yes\' or \'No\' \n").lower().strip()
        while view_again == 'yes':
            start+=5
            end+=5
            print("\nBelow are the next 5 rows of the data")
            print(filtered.iloc[start:end, :])
            view_again = str(input("\nWould you like to view 5 more rows?\nPlease answer with \'Yes\' or \'No'\" \n")).lower().strip()
            while view_again not in accepted_inputs:
                view_again = input("Please enter an appropriate input; either \'Yes\' or \'No\' \n").lower().strip()
    else: print("You have chosen not to view any of the raw data")
def print_filtered ( fdf , month , months , day , days ) : accepted_inputs = [ 'yes' , 'no' ] m = months . get ( month ) d = days . get ( day ) view = str ( input ( "Do you want to preview a section of the filtered DataFrame?\nAnswer with \'Yes\' or \'No\' \n" ) ) . lower ( ) . strip ( ) pd . set_option ( 'display.max_columns' , 13 ) if view == 'yes' : print ( "Below is the first 5 rows of the filtered DataFrame" ) filtered = fdf [ ( fdf . month == m ) & ( fdf . day == d ) ] print ( filtered . iloc [ : 5 , : ] ) start = 0 end = 5 view_again = str ( input ( "\nWould you like to view 5 more rows?\nPlease answer with \'Yes\' or \'No\' \n" ) ) . lower ( ) . strip ( ) while view_again not in accepted_inputs : view_again = input ( "Please enter an appropriate input; either \'Yes\' or \'No\' \n" ) . lower ( ) . strip ( ) while view_again == 'yes' : start += 5 end += 5 print ( "\nBelow are the next 5 rows of the data" ) print ( filtered . iloc [ start : end , : ] ) view_again = str ( input ( "\nWould you like to view 5 more rows?\nPlease answer with \'Yes\' or \'No'\" \n" ) ) . lower ( ) . strip ( ) while view_again not in accepted_inputs : view_again = input ( "Please enter an appropriate input; either \'Yes\' or \'No\' \n" ) . lower ( ) . strip ( ) else : print ( "You have chosen not to view any of the raw data" )
Continuously asks the user if he wants to see the raw data, showing 5
lines at a time.
Continuously asks the user if he wants to see the raw data showing 5 lines at a time .
'''Continuously asks the user if he wants to see the raw data, showing 5
    lines at a time.
    Args:
        Takes the dataframe, month, months, day, and days.
        These have already been previously entered through get_filters().
    Returns:
        Nothing, but prints the dataframe 5 lines by 5 lines.
    ''' #filtered = fdf[(fdf['month'] == month) & (fdf['day'] == day)]
 #fdf = fdf[(fdf['month'] == month) & fdf['day'] == day]
 #print the first 5 rows upon the user's request
 #the while loop to print until user does not want to continue
 #checking for unacceptable inputs

fdf
month
months
day
days