Question: Replace the os in the variables below with commands that will do the following: 1. Select all Information from produce for pear and jackfruit 2.

Replace the os in the variables below with commands that will do the following: 1. Select all Information from produce for pear and jackfruit 2. Create a clearance_price column In produce which includes prices reduced from the original prices by 50%. Then set two clearance equal to all information for the row at Index 3. PYTHON2.7 1 import pandas as pd 2 3 prices pd. Series ([1,1,2,3,5), 4 index=['apple', 'pear', 'banana', 'mango', 'jackfruit']) 5 6 inventory = pd. Series([10, 50, 41, 22], 7 index=['pear', 'banana', 'mango', 'apple']) 8 9 discount_prices prices.apply(lambda x: .9*x if x>3 else x) 10 11 produce = pd.DataFrame({'price':prices, 12 "discount_price':discount_prices, 13 'inventory':inventory}) 14 15 one_select = @ 16 17 18 two clearance = 0 =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
