修复人均消费bug

This commit is contained in:
shenjian@fangjia.com
2023-03-07 14:03:55 +08:00
parent 05ee877888
commit 0ded5b6901
+1 -1
View File
@@ -132,7 +132,7 @@ def sync(city=None):
lng = commutils.format_lat_lng(item['lng'])
lat = commutils.format_lat_lng(item['lat'])
price = find_around_price(lng, lat)
if price > 0:
if pd.notna(price):
seaweed_df.loc[index, 'avg_cost'] = price
else:
seaweed_df.loc[index, 'avg_cost'] = None