Skip to content

Improve Stock-Analysis#74

Open
tsubasa-kesennuma wants to merge 3 commits intoBerat-O:mainfrom
tsubasa-kesennuma:main
Open

Improve Stock-Analysis#74
tsubasa-kesennuma wants to merge 3 commits intoBerat-O:mainfrom
tsubasa-kesennuma:main

Conversation

@tsubasa-kesennuma
Copy link

@tsubasa-kesennuma tsubasa-kesennuma commented Feb 26, 2026

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!

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant