Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 49fbfda

Browse files
committed
mention progress bar usage of read_root in README
1 parent 9980f80 commit 49fbfda

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,19 @@ parts of a single large `DataFrame`.
9393

9494
You can also combine any of the above options at the same time.
9595

96+
Reading in chunks also supports progress bars
97+
```python
98+
from progressbar import ProgressBar
99+
pbar = ProgressBar()
100+
for df in pbar(read_root('bigfile.root', chunksize=100000)):
101+
# process df here
102+
103+
# or
104+
from tqdm import tqdm
105+
for df in tqdm(read_root('bigfile.root', chunksize=100000), unit="chunks"):
106+
# process df here
107+
```
108+
96109
## Writing ROOT files
97110

98111
`root_pandas` patches the pandas DataFrame to have a `to_root` method that allows you to save it into a ROOT file:

0 commit comments

Comments
 (0)