Question: Python What am I doing wrong? Wish someone help me to find the answer. It is repeating just the first five row. This function should
Python
What am I doing wrong?
Wish someone help me to find the answer. It is repeating just the first five row. This function should ask the user if they want to view some rows of data, and if they say YES will Displays first five records/rows of the dataframe.
After displaying five lines, ask the user if they would like to see five more, continuing
while True: select=input('Would you like to view individual trip data? Type Yes or No ') if select == "Yes": i=0 print(df[i:i+5]) i+=5 else: return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
