Skip to content

Commit 5a63a95

Browse files
dougbrnhombit
andauthored
Update src/nested_pandas/nestedframe/io.py
Co-authored-by: Konstantin Malanchev <[email protected]>
1 parent c1f70fe commit 5a63a95

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

src/nested_pandas/nestedframe/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def _cast_struct_cols_to_nested(df, reject_nesting):
188188
f"Column '{col}' is a Struct, but an attempt to cast it to a NestedDType failed. "
189189
"This is likely due to the struct not meeting the requirements for a nested column "
190190
"(all fields should be equal length). To proceed, you may add the column to the "
191-
"`reject_nesting` argument of the read_parquet function to skip the cast attempt."
191+
"`reject_nesting` argument of the read_parquet function to skip the cast attempt:"
192+
f" read_parquet(..., reject_nesting=['{col}'])"
192193
) from err
193194
return df

0 commit comments

Comments
 (0)