From 5438df5c4556e0f1dfdb5f07bc61d6c0d24ed6d7 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 7 May 2018 22:35:35 +0800 Subject: [PATCH] [Fix]Close #785 --- examples/TushareDataService/dataService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/TushareDataService/dataService.py b/examples/TushareDataService/dataService.py index 2e5e511b..381de683 100644 --- a/examples/TushareDataService/dataService.py +++ b/examples/TushareDataService/dataService.py @@ -60,7 +60,7 @@ def downMinuteBarBySymbol(symbol): cl = db[symbol] cl.ensure_index([('datetime', ASCENDING)], unique=True) # 添加索引 - df = ts.bar(symbol, ktype='1min') + df = ts.bar(symbol, freq='1min') df = df.sort_index() for ix, row in df.iterrows():