Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Explain why is this code inefficient he code below works-it will compute the total of the column -but it is inefficient. 1. Insert a markdown
Explain why is this code inefficient
he code below works-it will compute the total of the column -but it is inefficient. 1. Insert a markdown cell below and, in a sentence or two, describe why the code is not efficient. df=pd. DataFrame ({x:[100,200,300],y:[1,2,3]}) ytot =0 for i in range (0,3): y ytot = ytot +df.iloc[i,1]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