我希望在tqdm pandas进度条的前面或后面添加一个小描述,类似于以下内容:
import numpy as np
import pandas as pd
from tqdm.auto import tqdm; tqdm.pandas()
a = pd.Series(np.arange(100))
squares = a.progress_map(lambda x: x**2) #this one works
cubes = a.progress_map(lambda x: x**3) #this one works
squares = a.progress_map(lambda x: x**2, desc = 'Computing squares...') #this one doesn't work
cubes = a.progress_map(lambda x: x**3, desc = 'Computing cubes...') #this one doesn't work
那么,我该如何添加进度条的描述呢?