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

Commit dcdbacf

Browse files
committed
update README to deprecation of do_flatten(flatten=True)
1 parent 8a9e19f commit dcdbacf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ df = read_root('myfile.root', columns=['noexpand:sqrt(variable1)']
7373
Working with stored arrays can be a bit inconventient in pandas.
7474
`root_pandas` makes it easy to flatten your input data, providing you with a DataFrame containing only scalars:
7575
```python
76-
df = read_root('myfile.root', columns=['arrayvariable', 'othervariable'], flatten=True)
76+
df = read_root('myfile.root', columns=['arrayvariable', 'othervariable'], flatten=['arrayvariable'])
7777
```
7878

7979
Assuming the ROOT file contains the array `[1, 2, 3]` in the first `arrayvariable` column, flattening

0 commit comments

Comments
 (0)