Skip to content

Commit

Permalink
version0.10.1hotfix1
Browse files Browse the repository at this point in the history
  • Loading branch information
refraction-ray committed Aug 10, 2020
1 parent 3fb3a4e commit 7b19313
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,7 @@
### fixed
* 兼容天天基金 API 增量更新出现的累计净值空白
* 修复当日开仓的重计 bug
* 修复标普数据源表格包含 nan 行的 bug

## v0.10.0 - 2020.07.06
### fixed
Expand Down
2 changes: 1 addition & 1 deletion xalpha/cons.py
Expand Up @@ -435,7 +435,7 @@ def _float(n):
pass
if not n:
logger.warning("_float met with None as input arguments")
return 0
return 0.0
return float(n)


Expand Down
1 change: 1 addition & 0 deletions xalpha/universal.py
Expand Up @@ -511,6 +511,7 @@ def get_historical_fromsp(code, start=None, end=None, region="us", **kws):
df = pd.read_excel(r.content)
# print(df.iloc[:10])
df = df.iloc[6:]
df = df.dropna()
df["close"] = df["Unnamed: " + col]
df["date"] = pd.to_datetime(df["Unnamed: 0"])
df = df[["date", "close"]]
Expand Down

0 comments on commit 7b19313

Please sign in to comment.