Merging rows #1356
-
Hello
I want to merge rows in the way it shows normal table
how is that possible with Visidata? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Use Note that you may have to set |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. then and this is how the results looks like. However, when I select null values with Would you please take a look at raw data These are multiple choice questions and their answers of an exam and some questions (first column) are multiple lines (multiple rows). This makes me a bit confused. |
Beta Was this translation helpful? Give feedback.
-
@saulpw I was able to make the project done, with Pandas, (in Jupyter). However I was thinking with myself, it would be great if we could have interactive DataFrame of pandas which we can work in VisiData. |
Beta Was this translation helpful? Give feedback.
Use
gs
to select all rows, thenf
to fill the nulls in each column with the row above it.Thengu
to unselect all rows, select all the empty/null values (g|^$
should work), andgd
to delete them. What's left should be the full rows that you want.Note that you may have to set
options.null_value=""
so that VisiData considers empty strings null values; or you canShift+M
to melt the sheet, go to an empty cell and press,
to select all empty cells, thengzd
to set them to null values).