人均消费提高最大线程

This commit is contained in:
shenjian@fangjia.com
2023-03-07 14:21:06 +08:00
parent 0ded5b6901
commit b7d4180cde
+1 -1
View File
@@ -136,7 +136,7 @@ def sync(city=None):
seaweed_df.loc[index, 'avg_cost'] = price
else:
seaweed_df.loc[index, 'avg_cost'] = None
with ThreadPoolExecutor(max_workers=30) as pool:
with ThreadPoolExecutor(max_workers=80) as pool:
for index, item in seaweed_df.iterrows():
pool.submit(find_around_price_item, index, item)
# for index, item in seaweed_df.iterrows():