qka 2.4.6.dev2__py3-none-any.whl → 2.4.7.dev2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qka/core/data.py +3 -1
- {qka-2.4.6.dev2.dist-info → qka-2.4.7.dev2.dist-info}/METADATA +1 -1
- {qka-2.4.6.dev2.dist-info → qka-2.4.7.dev2.dist-info}/RECORD +6 -6
- {qka-2.4.6.dev2.dist-info → qka-2.4.7.dev2.dist-info}/WHEEL +0 -0
- {qka-2.4.6.dev2.dist-info → qka-2.4.7.dev2.dist-info}/entry_points.txt +0 -0
- {qka-2.4.6.dev2.dist-info → qka-2.4.7.dev2.dist-info}/licenses/LICENSE +0 -0
qka/core/data.py
CHANGED
|
@@ -1084,7 +1084,9 @@ class Data():
|
|
|
1084
1084
|
"""
|
|
1085
1085
|
if self.drop_head <= 0:
|
|
1086
1086
|
return ddf
|
|
1087
|
-
|
|
1087
|
+
# 注意:dask 的 .head(n) 本身就会触发计算、返回 pandas 对象,
|
|
1088
|
+
# 后面不能再 .compute()(会 AttributeError)。Backtest 走的正是 lazy 路径。
|
|
1089
|
+
labels = ddf.index.to_series().head(self.drop_head)
|
|
1088
1090
|
if labels.empty:
|
|
1089
1091
|
return ddf
|
|
1090
1092
|
if len(labels) < self.drop_head:
|
|
@@ -5,7 +5,7 @@ qka/core/accessor.py,sha256=iEZrteVe8nqv3s5Va2l3Vz50N2S6X0IOElKq9Ik3Wno,2893
|
|
|
5
5
|
qka/core/analysis.py,sha256=EXCO4qhzd2av5Yb4jihcNji1V-VFPOceUHKtg-q8bLs,11142
|
|
6
6
|
qka/core/backtest.py,sha256=kzMAFbyGFvGE--Qypiot6wAp0jTiEsOPbaPd8Zs3o1M,13541
|
|
7
7
|
qka/core/broker.py,sha256=FxeHh9qZ9M6FNFLd8EXwztA4kmC9zZzkrXin2hdVFa4,9662
|
|
8
|
-
qka/core/data.py,sha256=
|
|
8
|
+
qka/core/data.py,sha256=ShduaInkEycxF39axrqJXzJGFGFRV4PFCCGv6rxuUz4,95479
|
|
9
9
|
qka/core/indicator.py,sha256=CR6b-WYXb70VPqiRYkGaBeZRjc1hmKbUojB6n_laMpo,6895
|
|
10
10
|
qka/core/report.py,sha256=TaZoxWk7ZIPLhA9Ss9UOmxWY2ymzKJRUnxSzmyPcBTI,22386
|
|
11
11
|
qka/core/simulate.py,sha256=bdThckUFj0Y3GyAj5ahLIGv3HetJFTbyxbEcX2SUKn0,2915
|
|
@@ -21,8 +21,8 @@ qka/skills/qka/references/broker.md,sha256=wr62v1asRM-wBdsADIsB406eXm_ENYcrwGMAN
|
|
|
21
21
|
qka/skills/qka/references/data.md,sha256=6mL44eGOk_xXLqQ62Wmv1DFYcXn3kayYWYWMd8-hFOk,28857
|
|
22
22
|
qka/skills/qka/references/sizing.md,sha256=3SsX2ddQoHjE177dberW0Q7wYxW-M_2DG_-sV3CCo9A,656
|
|
23
23
|
qka/skills/qka/references/strategy.md,sha256=-6xa_oigTTj77Siity5bTC5MbdF3UKfld9imnevlAAc,4455
|
|
24
|
-
qka-2.4.
|
|
25
|
-
qka-2.4.
|
|
26
|
-
qka-2.4.
|
|
27
|
-
qka-2.4.
|
|
28
|
-
qka-2.4.
|
|
24
|
+
qka-2.4.7.dev2.dist-info/METADATA,sha256=j7FL0ZvptXzPQHz8CeeL30FW1YbO8vYT3EpiIw1fqSU,7545
|
|
25
|
+
qka-2.4.7.dev2.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
26
|
+
qka-2.4.7.dev2.dist-info/entry_points.txt,sha256=quG9zg-rOKKtbg-6FiXkoxkUUTMltMBD0hZ0QUnJ6RM,37
|
|
27
|
+
qka-2.4.7.dev2.dist-info/licenses/LICENSE,sha256=3iIG35SnJNF11yIzm3vxa2QUvy9SS5rktM3O1DL2vqM,1075
|
|
28
|
+
qka-2.4.7.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|