新增物业费补充
This commit is contained in:
@@ -99,7 +99,7 @@ def sync_by_city(city_now):
|
|||||||
community_summary_df = es206_client.scan_by_sql_to_data_frame(sql)
|
community_summary_df = es206_client.scan_by_sql_to_data_frame(sql)
|
||||||
with ThreadPoolExecutor(max_workers=50) as pool:
|
with ThreadPoolExecutor(max_workers=50) as pool:
|
||||||
def deal(index, item):
|
def deal(index, item):
|
||||||
if index % 1000 == 0:
|
if (index + 1) % 1000 == 0:
|
||||||
log.info(f"已补充{index}")
|
log.info(f"已补充{index}")
|
||||||
if pd.notna(item['location']) and pd.notna(item['location']['lon']):
|
if pd.notna(item['location']) and pd.notna(item['location']['lon']):
|
||||||
location = [item['location']['lon'], item['location']['lat']]
|
location = [item['location']['lon'], item['location']['lat']]
|
||||||
@@ -128,4 +128,4 @@ def sync(city=None):
|
|||||||
sync_by_city(city)
|
sync_by_city(city)
|
||||||
|
|
||||||
|
|
||||||
sync('上海')
|
sync()
|
||||||
Reference in New Issue
Block a user