kuk / log-progress

https://habr.com/ru/post/276725/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iterrows

vfridkin opened this issue · comments

commented

Trying with iterrows to iterate through data frame rows:

for index, c in log_progress(df_search.iterrows(), every=1):

It doesn't seem to be able to identify the number of items.
image

Just use size=len(df) as an additional keyword when invoking. Because df.itertuple() returns an iterator, not a list.