You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Columns containing non-fundamental types (e.g., objects, strings) will result in NumPy arrays with `dtype=object`.
111
+
112
+
##### Collection Columns
113
+
If your column contains collections of fundamental types (e.g., std::vector<int>), `AsNumpy()` produces a NumPy array with `dtype=object` where each
114
+
element is a NumPy array representing the collection for its corresponding entry in the column.
115
+
116
+
If the collection at a certain entry contains values of fundamental types, or if it is a regularly shaped multi-dimensional array of a fundamental type,
117
+
then the numpy array representing the collection for that entry will have the `dtype` associated with the value type of the collection, for example:
If the collection at a certain entry contains values of a non-fundamental type, `AsNumpy()` will fallback on the [default behavior](\ref asnumpy_scalar_columns) and produce a NumPy array with `dtype=object` for that collection.
125
+
126
+
For more complex collection types in your entries, e.g. when every entry has a jagged array value, refer to the section on [interoperability with AwkwardArray](\ref awkward_interop).
127
+
107
128
#### Processing data stored in NumPy arrays
108
129
109
130
In case you have data in NumPy arrays in Python and you want to process the data with ROOT, you can easily
### Interoperability with [AwkwardArray](https://awkward-array.org/doc/main/user-guide/how-to-convert-rdataframe.html)
128
151
129
152
The function for RDataFrame to Awkward conversion is ak.from_rdataframe(). The argument to this function accepts a tuple of strings that are the RDataFrame column names. By default this function returns ak.Array type.
0 commit comments