Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started