Open
Conversation
When executing parallel processing, an error occurred that ran out of PC memory (or virtual memory), so the number of Pool() in app.py was limited. Improper data access improvements for tuples. The definition of the data type was different between the sending side (Stock-Analysis\fetch_stocks) and the receiving side (Stock-Analysis\app\data_processor), so it was changed and unified to the dictionary type. In Stock-Analysis\plot_stocks.py, changed the file save destination from an absolute path to a relative path. Stock-Analysis\load_stocks.py supported multiple character codes. It seems that many of the stocks in the Turkish market (.IS) are not provided with recommendationMean on Yahoo Finance. Therefore, I added Stock-Analysis\generate_japan_stocks_csv.py to generate a CSV that can reliably retrieve stock data. For some reason, it's the Tokyo Stock Exchange. If you request too much data from yfinance, it will often return empty data, so we limited it to topix_core30, which is Japan's large-cap stocks. Rate (recommendationMean) is also written in CSV. Modified Stock-Analysis\data_processor.py. Add requirements.txt. Try: Enter the filename containing the list of stocks: topix_core30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When executing parallel processing, an error occurred that ran out of PC memory (or virtual memory), so the number of Pool() in app.py was limited.
Improper data access improvements for tuples.
The definition of the data type was different between the sending side (Stock-Analysis\fetch_stocks) and the receiving side (Stock-Analysis\app\data_processor), so it was changed and unified to the dictionary type.
In Stock-Analysis\plot_stocks.py, changed the file save destination from an absolute path to a relative path.
Stock-Analysis\load_stocks.py supported multiple character codes.
Rate (recommendationMean) is also written in CSV.
Modified Stock-Analysis\data_processor.py.
It seems that many of the stocks in the Turkish market (.IS) are not provided with recommendationMean on Yahoo Finance. Therefore, I added Stock-Analysis\generate_japan_stocks_csv.py to generate a CSV that can reliably retrieve stock data.
It's the Tokyo Stock Exchange.
If you request too much data from yfinance, it will often return empty data, so I limited it to topix_core30, which is Japan's large-cap stocks.
Added dependencies (requirements.txt).
Although it says run main.py, there were some problems such as main.py not existing, so I slightly changed the Stock-Analysis README.
Added some information on how to download the library.
Also added xlrd and openpyxl library.
Try:
Enter the filename containing the list of stocks: topix_core30
Please rate this change!