户均总价逻辑修改
This commit is contained in:
@@ -65,10 +65,10 @@ def sync(city=None):
|
||||
if (curr_city + curr_region + curr_name) in avg_price_map:
|
||||
avg_price = avg_price_map[curr_city + curr_region + curr_name]
|
||||
if pd.notna(avg_price):
|
||||
min_avg_price = 0.8 * avg_price
|
||||
max_avg_rice = 1.2 * avg_price
|
||||
total_price = commutils.get_total_price(curr_city, curr_region, names, day_before=366,
|
||||
min_avg_price=min_avg_price, max_avg_price=max_avg_rice)
|
||||
# 由于覆盖率较低,暂不过滤
|
||||
# min_avg_price = 0.8 * avg_price
|
||||
# max_avg_rice = 1.2 * avg_price
|
||||
total_price = commutils.get_total_price(curr_city, curr_region, names, day_before=366)
|
||||
seaweed_df.loc[index, 'total_price'] = total_price
|
||||
|
||||
for index, item in seaweed_df.iterrows():
|
||||
|
||||
Reference in New Issue
Block a user