调试
This commit is contained in:
@@ -124,10 +124,7 @@ def sync(city=None):
|
||||
print(lng)
|
||||
print(lat)
|
||||
print(price)
|
||||
if pd.notna(price) or price > 0:
|
||||
seaweed_df.loc[index, 'avg_cost'] = price
|
||||
else:
|
||||
seaweed_df.loc[index, 'avg_cost'] = None
|
||||
seaweed_df.loc[index, 'avg_cost'] = price
|
||||
with ThreadPoolExecutor(max_workers=30) as pool:
|
||||
for index, item in seaweed_df.iterrows():
|
||||
pool.submit(find_around_price_item, index, item)
|
||||
|
||||
Reference in New Issue
Block a user