Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions