kuk / log-progress

https://habr.com/ru/post/276725/
MIT License
564 stars 60 forks source link

iterrows #10

Open vfridkin opened 6 years ago

vfridkin commented 6 years ago

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

1kastner commented 6 years ago

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