File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/nested_pandas/nestedframe Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments