Skip to content

Commit

Permalink
[Mod] 修复数据缺失时的N/A问题,升级版本号到1.0.1,close #1
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Dec 6, 2021
1 parent ce87727 commit 1e5d315
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -5,7 +5,7 @@
</p>

<p align="center">
<img src ="https://img.shields.io/badge/version-1.0.0-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/version-1.0.1-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/>
<img src ="https://img.shields.io/badge/python-3.7-blue.svg" />
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = vnpy_wind
version = 1.0.0
version = 1.0.1
url = https://www.vnpy.com
license = MIT
author = Xiaoyou Chen
Expand Down
3 changes: 3 additions & 0 deletions vnpy_wind/wind_datafeed.py
Expand Up @@ -84,6 +84,9 @@ def query_intraday_bar_history(self, req: HistoryRequest) -> Optional[List[BarDa
if error:
return []

# 补全缺失数值
df.fillna(value=0, inplace=True)

# 解析数据
bars: List[BarData] = []
for tp in df.itertuples():
Expand Down

0 comments on commit 1e5d315

Please sign in to comment.