Skip to content

Commit 7f6c45c

Browse files
committed
update readme
1 parent 05db42a commit 7f6c45c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,15 +490,15 @@ for ``DataFrame.progress_apply`` and ``DataFrameGroupBy.progress_apply``:
490490
491491
import pandas as pd
492492
import numpy as np
493-
from tqdm import tqdm, tqdm_pandas
493+
from tqdm import tqdm
494494
495495
...
496496
497497
df = pd.DataFrame(np.random.randint(0, 100, (100000, 6)))
498498
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)
499+
# Register `pandas.progress_apply` with `tqdm`
500+
# (can use `tqdm_gui`, `tqdm_notebook`, optional kwargs, etc.)
501+
tqdm.pandas(desc="my bar!")
502502
503503
# Now you can use `progress_apply` instead of `apply`
504504
df.progress_apply(lambda x: x**2)

0 commit comments

Comments
 (0)