Computers and Technology

Pythonalmost there. now that you have functions to read the various files and add all the data into data structures you are ready compute the final value of the portfolio. paste your code from the previous two parts of this prelab as you will need to call those functions to complete this part. reminder of the data formats: the input file will be a csv file with each row in the format "buy_or_sell, quantity, ticker, date" where buy_or_sell is either the string "buy" or "sell", quantity is an integer representing the number of shares traded, ticker is a string representing the ticker symbol being traded, and date is the date of the trade in the format -mm-dd. you may assume there are files named .csv for each ticker symbol that the company trades. each row of these csv files will be in the format "date, price, volume" where date is in the format -mm-dd, the price is a float, and volume is an integer representing the number of shares that were traded on that day by all traders (you will not need the trading volume for this prelab)part 3: write a function named "portfolio_value" that takes one parameter that is a string representing a filename that contains all the trades made by your company throughout the year and returns the total value of the portfolio on the date "2015-12-31". the total value is the sum of all the quantities of stock owned times the price for that stock at the end of the year.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, dreyes439
You are almost finished updating a web site. as part of the update, you have converted all pages from html 4.0 to html5. the project is currently on schedule. however, your project manager has been asked by the marketing team manager to justify a day of time spent validating the site's html5 pages. the marketing team manager does not have technical knowledge of the internet or the web. which is the most appropriate explanation to provide to the marketing team manager?
Answers: 1
image
Computers and Technology, 22.06.2019 18:10, AdoNice
How can i delete permalinks from a word press site?
Answers: 1
image
Computers and Technology, 22.06.2019 23:00, brookerebman15
Which type of tab stop is most for weights and measurements?
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, Dvrsug8598
You need a quick answer from a coworker. the most effective way to reach your coworker is through a. cloud server b. instant message c. teleconference d. telepresence
Answers: 1
Do you know the correct answer?
Pythonalmost there. now that you have functions to read the various files and add all the data into...

Questions in other subjects: