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
{{ message }}
Repository navigation
DataFrame addRow/addColumn doesnt work on empty frames #113
It seems like a bug that should be fixed.
Indeed, it would be nice to create an empty DataFrame and then fill it with values.
When adding a row, we could check if DataFrame is empty, and if yes, set the number of columns to the size of a new row.
But I have several doubts:
Do we want to make that check every time we add a row? Will it not slow down the operations that use add: (e.g., collect:, select:, ect.)?
Does it make sense to create a DataFrame with 0 columns and then resize it to fit the first inserted row? Would we do the same for Matrix?
Perhaps, we should check how this is done in pandas or R.
Activity
olekscode commentedon Jul 26, 2021
It seems like a bug that should be fixed.
Indeed, it would be nice to create an empty DataFrame and then fill it with values.
When adding a row, we could check if DataFrame is empty, and if yes, set the number of columns to the size of a new row.
But I have several doubts:
add:(e.g.,collect:,select:, ect.)?Perhaps, we should check how this is done in pandas or R.