Skip to content

Could the pandas progress bar be used for series objects? #182

@owlas

Description

@owlas

If I have a very long series with an expensive function to apply, it would be good to use the pandas .progess_apply too. It seems that only dataframes and groupbys have this ability.

For example

df = pd.DataFrame(range(1000), columns=['numbers'])
tqdm_pandas(tqdm_notebook())
df.numbers.progress_apply(lambda x: x**2)

Gives the following error:

AttributeError: 'Series' object has no attribute 'progress_apply'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions