'How to list the tickers (CSV data) based on the standard deviation in Python?
I have a CSV file contains more than 1000 tickers of stock data. I wanna iterate the CSV file , calculate the Standard deviation of each ticker and display the Standard deviation. I have done this part.
What I need is I want the program to parse through the list and display the list of Stocks that meets certain Standard deviation from the whole dataset.
- let's say a I have list of 1500 tickers, and when I run the program it gives me a output like
- stocks above +2SD are......
- stocks below -2SD are .....
- Stocks above +1SD are....
- Stocks below -1SD etc...
I wrote function for each standard deviation and now it displays whether the stock is above or below certain SD individually, not as a list. I need to make it display as a list. This is where I'm at & I got stuck!
Any help would be appreciated !
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
