Page 1 of 1

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

Posted: Sun Jul 10, 2022 11:27 am
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 75 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