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
It seems there is currently no straightforward way to round-trip empty data frames. The colnames(df) are dropped since they are repeated for each row, but there are no rows! I could not find a way to make fromJSON correctly parse toJSON(df, dataframe = "columns"), and anyway the output is also empty when the input data frame has no rows.
I guess one has to extract header, index, and values manually and do some custom JSON encoding.
The text was updated successfully, but these errors were encountered:
It seems there is currently no straightforward way to round-trip empty data frames. The
colnames(df)
are dropped since they are repeated for each row, but there are no rows! I could not find a way to makefromJSON
correctly parsetoJSON(df, dataframe = "columns")
, and anyway the output is also empty when the input data frame has no rows.I guess one has to extract header, index, and values manually and do some custom JSON encoding.
The text was updated successfully, but these errors were encountered: