Skip to content

Commit 14b516d

Browse files
committed
use all chunks
1 parent 17d00cb commit 14b516d

File tree

1 file changed

+3
-2
lines changed
  • src/nested_pandas/nestedframe

1 file changed

+3
-2
lines changed

src/nested_pandas/nestedframe/io.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def read_parquet(
5555
as a top-level column. For example, if you have a column "nested" with
5656
subcolumns "nested.a" and "nested.b", and also a top-level column "a". In
5757
these cases, keep in mind that if "nested" is in the reject_nesting list
58-
the operation will fail (but nesting will still work normally).
58+
the operation will fail, as is consistent with the default pandas behavior
59+
(but nesting will still work normally).
5960
6061
Examples
6162
--------
@@ -120,7 +121,7 @@ def read_parquet(
120121
# Build a struct column from the columns
121122
field_names = [table.column_names[i] for i in indices]
122123
structs[col] = pa.StructArray.from_arrays(
123-
[table.column(i).chunk(0) for i in indices], # Child arrays
124+
[table.column(i).combine_chunks() for i in indices], # Child arrays
124125
field_names, # Field names
125126
)
126127
indices_to_remove.extend(indices)

0 commit comments

Comments
 (0)