-
Notifications
You must be signed in to change notification settings - Fork 54.4k
允许 #873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
允许 #873
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0cec527
Update daily_analysis.yml
Shzzzy 86c4377
Create right_side_selector.py
Shzzzy 4a6f868
Update daily_analysis.yml
Shzzzy 57bced3
Update daily_analysis.yml
Shzzzy 1e99935
Update daily_analysis.yml
Shzzzy 573fc52
Update daily_analysis.yml
Shzzzy 95b1ce5
Update daily_analysis.yml
Shzzzy 6ead2ed
Update daily_analysis.yml
Shzzzy 4cf874d
Update daily_analysis.yml
Shzzzy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import akshare as ak | ||
| import pandas as pd | ||
|
|
||
| def select_right_side(): | ||
|
|
||
| df = ak.stock_zh_a_spot_em() | ||
|
|
||
| # 去ST | ||
| df = df[~df['名称'].str.contains('ST')] | ||
|
|
||
| # 成交额过滤(活跃度) | ||
| df = df[df['成交额'] > 5e8] | ||
|
|
||
| # 涨幅过滤(右侧启动) | ||
| df = df[(df['涨跌幅'] > 2) & (df['涨跌幅'] < 8)] | ||
|
|
||
| # 换手率 | ||
| df = df[df['换手率'] > 3] | ||
|
|
||
| # 排序 | ||
| df = df.sort_values('涨跌幅', ascending=False) | ||
|
|
||
| top50 = df.head(50)['代码'].tolist() | ||
|
|
||
| return ",".join(top50) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| print(select_right_side()) |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step exports a generated
STOCK_LISTvia$GITHUB_ENV, but the later执行股票分析step still definesSTOCK_LISTexplicitly from${{ vars.STOCK_LIST || secrets.STOCK_LIST || '600519' }}, which shadows the generated value; as a result, the right-side pool computation has no effect and analysis continues using the static/default list. This causes silently incorrect stock selection rather than the intended dynamic list.Useful? React with 👍 / 👎.