05 2021 档案
摘要:import time import asyncio from concurrent.futures import ThreadPoolExecutor def long_blocking_function(): print(time.time()) time.sleep(2) return Tru
阅读全文
摘要:def numpy_split_pd(df, split_num): # 使用numpy拆分DataFrame 把索引均分 均分后再用索引拆分DataFrame lst_index = list(map(lambda a: a.tolist(), numpy.array_split(df.index
阅读全文