修复人均消费bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user