This commit is contained in:
2018-12-05 19:11:21 +08:00
parent 9daf068015
commit 6897190840
+7 -2
View File
@@ -530,8 +530,13 @@ def findHouse2(ct, rl, lk, timd, timm):
}
}, "from": 0, "size": 0, "sort": [], "aggs": {}}
))
return pd.DataFrame(query_list)
house = list()
for hit in query_list:
h = hit["_source"]
h["total_price"] = int(h["total_price"])
h["p_date"] = int(h["p_date"])
house.append(h)
return pd.DataFrame(house)