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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Ican’t open these when it’s just a comment. someone pls explain why this is happening
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
question
Social Studies, 08.01.2021 17:20
question
Mathematics, 08.01.2021 17:20
question
Health, 08.01.2021 17:20
question
Chemistry, 08.01.2021 17:20
question
Mathematics, 08.01.2021 17:20
question
Mathematics, 08.01.2021 17:20
Questions on the website: 13722362