We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05db42a commit 7f6c45cCopy full SHA for 7f6c45c
1 file changed
README.rst
@@ -490,15 +490,15 @@ for ``DataFrame.progress_apply`` and ``DataFrameGroupBy.progress_apply``:
490
491
import pandas as pd
492
import numpy as np
493
- from tqdm import tqdm, tqdm_pandas
+ from tqdm import tqdm
494
495
...
496
497
df = pd.DataFrame(np.random.randint(0, 100, (100000, 6)))
498
499
- # Create and register a new `tqdm` instance with `pandas`
500
- # (can use tqdm_gui, tqdm_notebook, optional kwargs, etc.)
501
- tqdm_pandas(tqdm, leave=True)
+ # Register `pandas.progress_apply` with `tqdm`
+ # (can use `tqdm_gui`, `tqdm_notebook`, optional kwargs, etc.)
+ tqdm.pandas(desc="my bar!")
502
503
# Now you can use `progress_apply` instead of `apply`
504
df.progress_apply(lambda x: x**2)
0 commit comments