与Pandas结合:

1
2
3
4
from tqdm.autonotebook import tqdm

for row in tqdm(df.itertuples(), total=df.shape[0], ncols=128):
    # do something