subject
Computers and Technology, 24.10.2019 18:43 hbked23

Write a function named "read_prices" that takes one parameter that is a list of ticker symbols that your company owns in their portfolio. you are to read a csv file for each of these tickers which contains the price of each stock throughout the year and return these prices in a single dictionary. the returned dictionary will contain ticker symbols as keys and dictionaries as values where the inner dictionaries will have dates as keys (as strings in the format "-mm-dd") and prices as values as floats. all said this dictionary will contain the price for any stock on any date over the past year. you may assume there will be files named ".csv" for each ticker symbol in the input list. for example, if "txn" is in the ticker list then a file named "txn. csv" will be in the same directory as your code during testing and each row of this csv file 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). example line for aapl stock: "2015-10-20,112.673677,48967800"

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 14:00, ashley1460
Mr. johnson creates a game in which the players see the world from their avatar’s perspective. what genre of game is this?
Answers: 2
image
Computers and Technology, 22.06.2019 00:00, amyeileen
11. is the ability to understand how another person is feeling. a. authority b. sympathy c. empathy d. taking a stand
Answers: 1
image
Computers and Technology, 22.06.2019 04:00, tiatia032502
Which of the following kinds of programs displays an online advertisement in a banner or pop-up window on webpages, email, or other internet service? e
Answers: 2
image
Computers and Technology, 22.06.2019 09:00, sophiawatson70
Create a cell reference in a formula by typing in the cell name or         a. right-clicking the cell. b. clicking the cell. c. clicking the column where the cell is located. d. clicking the row where the cell is located.
Answers: 1
You know the right answer?
Write a function named "read_prices" that takes one parameter that is a list of ticker symbols that...

Questions in other subjects: