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
JSON parsing seems to drop null values (reported in #7858 and #11860) and empty arrays (reported here).
I encountered this when reading several files with pl.read_ndjson(...) and then trying to join the resulting dataframes using pl.concat(...). Some files have only null or [] in a given column, which causes errors like ShapeError: unable to append to a DataFrame of width 7 with a DataFrame of width 8, despite all the input files having the same structure.
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example
Log output
No response
Issue description
JSON parsing seems to drop
null
values (reported in #7858 and #11860) and empty arrays (reported here).I encountered this when reading several files with
pl.read_ndjson(...)
and then trying to join the resulting dataframes usingpl.concat(...)
. Some files have onlynull
or[]
in a given column, which causes errors likeShapeError: unable to append to a DataFrame of width 7 with a DataFrame of width 8
, despite all the input files having the same structure.Related PR: #11880
Expected behavior
In other words, I would expect
df
to be the same as:which produces the output show above.
Installed versions
The text was updated successfully, but these errors were encountered: