#import the pandas module tgt #load the target.csv file tgt_march = # subset the last 19 days of the dataframe tgt_vol =

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

#import the pandas module tgt #load the target.csv file tgt_march = # subset the last 19 days of the dataframe tgt_vol =

Post by answerhappygod »

Import The Pandas Module Tgt Load The Target Csv File Tgt March Subset The Last 19 Days Of The Dataframe Tgt Vol 1
Import The Pandas Module Tgt Load The Target Csv File Tgt March Subset The Last 19 Days Of The Dataframe Tgt Vol 1 (93.2 KiB) Viewed 73 times
#import the pandas module tgt #load the target.csv file tgt_march = # subset the last 19 days of the dataframe tgt_vol = # subset tgt_march and create a data frame that contains the columns: Date and Volume tgt_close = # subset tgt_march and create a data frame that contains the columns: Date and Closing day int(input()) - 1 volume_row = # subset the specific row of tgt_vol for the given day volume = volume_row.iloc [0] [1] # gets the volume for the given day close_row = # subset the specific row of tgt_close for the given day close= close_row.iloc [0] [1] # gets the closing stock price for the given day date = tgt_march.iloc [[day]].iloc[0][0] # gets the date print("The volume of TGT on " + str(date) + " is " + str(int (volume)) + ".") print("The closing stock price of TGT on + str(date) + " is $" + str(close) + 11 "D
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply