qka 2.0.2.dev2__tar.gz → 2.1.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: qka
3
- Version: 2.0.2.dev2
3
+ Version: 2.1.1
4
4
  Summary: QKA(快量化 / Quant Kit for A-shares)- 简洁易用的 A 股量化回测框架
5
5
  Project-URL: Home, https://github.com/zsrl/qka
6
6
  Project-URL: Repository, https://github.com/zsrl/qka
@@ -368,7 +368,7 @@ class Data():
368
368
  # 切片回用户请求的日期范围(去掉指标预热扩展部分)
369
369
  if start_date is not None and max_window > 0:
370
370
  cutoff = pd.Timestamp(start_date)
371
- ddf = ddf.loc[ddf.index >= cutoff]
371
+ ddf = ddf.loc[cutoff:]
372
372
 
373
373
  # 基准数据
374
374
  if self.benchmark:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes