Python Function named get_loss_dates – Daily Stock Price Assignment (4 pts) Write a Python function named get_loss_dates. This function will read in a file

Python Function named get_loss_dates – Daily Stock Price Assignment (4 pts) Write a Python function named get_loss_dates. This function will read in a file containing information about the daily stock price for a specific company (e.g. APPL.txt would contain the daily stock prices for Apple). This function should return a list of the dates in which the stock price decreased (e.g. closed lower than it opened). It will have a single parameter named filename, the name of the file containing the stock data (e.g. “AAPL.txt”).

The format of the file is given below. Note that the first line will always be a “header” that contains the names of the columns, not actual data.

Don't use plagiarized sources. Get Your Custom Essay on
Python Function named get_loss_dates – Daily Stock Price Assignment (4 pts) Write a Python function named get_loss_dates. This function will read in a file
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT! Just from $10/Page
Order Essay

timestamp,open,high,low,close,volume
2018-10-26,83.7200,84.2600,81.8100,81.9600,5229616
2018-10-25,83.1800,84.5800,82.6500,83.8300,5259008
2018-10-24,82.5900,84.3000,82.1100,82.2700,5098796

def get_loss_dates(filename):
“` Returns list of dates when stock closed lower than it opened. “`

superadmin

Recent Posts

communication MA | Solution Aider

part one For this assignment you are to to watch: Shattered Glass Write a two…

3 years ago

Standard Project – WebServers | Solution Aider

Standard Project - WebServers. Instruction attached. Need all requirements, you do not have to make…

3 years ago

Discussion post 2 | Solution Aider

Read classmates post and respond with 100 words:The International Categorization of Diseases, Tenth Revision, Clinical…

3 years ago

case sttudy | Solution Aider

Most Americans have at least 1 issue that is most important to them. Economic issues…

3 years ago

Methodologies Report | Solution Aider

For this assignment, you are the court intake processor at a federal court where you…

3 years ago

outline about gender equality | Solution Aider

Use a standard outline format to lay out how you are going to write your…

3 years ago