Timeline for Import csv file which contains columns of different lengths --> How can I delete empty fields?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 8, 2015 at 12:59 | vote | accept | Niki | ||
May 7, 2015 at 12:42 | comment | added | MarcoB |
@Niki @Pickett Those empty entries might actually be just empty strings "" , in which case the replacement could be even easier. Let me make a toy CSV file to play with...
|
|
May 7, 2015 at 12:39 | answer | added | MarcoB | timeline score: 2 | |
May 7, 2015 at 11:54 | comment | added | Niki | Thanks a lot. The DeleteCases solution works, but only if I type: DeleteCases[imp,{"",""}]. The second solution does not work. I have found it on another site, but even if I use {"",""} or only "", the solution does not work. | |
May 7, 2015 at 11:49 | comment | added | C. E.♦ |
Try DeleteCases[imp,{,}] or using a rule replacement imp /. {,} -> Sequence[]
|
|
May 7, 2015 at 11:37 | history | asked | Niki | CC BY-SA 3.0 |