修改: PriceSystem/fangjia/__init__.py

修改:     PriceSystem/feature/region_feature.py
	修改:     PriceSystem/rent_price/district_map0413.py
	修改:     PriceSystem/rent_test.py
This commit is contained in:
罗干
2018-05-05 17:49:26 +08:00
parent 753b54db7c
commit 6ce1075d29
4 changed files with 37 additions and 24 deletions
+3 -1
View File
@@ -67,7 +67,7 @@ def sample_pool(ct,rl,timd,timm):
query = {"city":ct,"cat":"rent","region":rl,
"p_date":{"$gt":timd,"$lt":timm}}
#query=f_del(query,rl)
query=f_del(query,rl)
fields = {"total_price":1,"area":1, "city":1,"region":1,'p_date':1,
"district_name":1,"rent_type":1,"fitment":1,"block":1}
@@ -75,6 +75,8 @@ def sample_pool(ct,rl,timd,timm):
###print(lt)
#pos = list()
#for s in seawater.find(query,fields1).skip(10000).limit(lt):
print('query=',query)
return fangjia.rent_sample(query, fields)
def k_means(pp):