From bd1131ee068590dc381f86c56555fb5fc6c2f8c9 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Thu, 16 Jan 2025 17:00:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selector.py | 5 +++++ 财报筛选/选股测试.ipynb | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/selector.py b/selector.py index 52fa701..edef7f9 100644 --- a/selector.py +++ b/selector.py @@ -6,6 +6,11 @@ class Selector: return codes +class Score: + def score(self, codes: [str], df: pd.DataFrame) -> [(str, int)]: + return list(map(lambda code: (code, 0), codes)) + + class PeriodSelector(Selector): def __init__(self, period: int = 5): self.__period = period diff --git a/财报筛选/选股测试.ipynb b/财报筛选/选股测试.ipynb index a0a5149..a1ae465 100644 --- a/财报筛选/选股测试.ipynb +++ b/财报筛选/选股测试.ipynb @@ -6,8 +6,8 @@ "metadata": { "collapsed": true, "ExecuteTime": { - "end_time": "2025-01-15T09:42:10.585456Z", - "start_time": "2025-01-15T09:42:06.693869Z" + "end_time": "2025-01-16T07:57:04.498115Z", + "start_time": "2025-01-16T07:57:00.401734Z" } }, "source": [ @@ -56,13 +56,13 @@ "]]" ], "outputs": [], - "execution_count": 17 + "execution_count": 1 }, { "metadata": { "ExecuteTime": { - "end_time": "2025-01-15T09:45:06.335656Z", - "start_time": "2025-01-15T09:45:06.291888Z" + "end_time": "2025-01-16T07:57:04.552251Z", + "start_time": "2025-01-16T07:57:04.499999Z" } }, "cell_type": "code", @@ -86,7 +86,7 @@ ] } ], - "execution_count": 24 + "execution_count": 2 } ], "metadata": {