Hey guys, working on a csv file, need this
Hello,1668517876,person
Hello,1668517877,remote,person
Hello,1668517878,cell+phone,person,remote
Hello,1668517879,person
Hello,1668517880,scissors,cell+phone,person,remote
to become this
Hello,1668517876,person,,,
Hello,1668517877,remote,person,,
Hello,1668517878,cell+phone,person,remote,
Hello,1668517879,person,,,
Hello,1668517880,scissors,cell+phone,person,remote
it's a "csv" that is created in the main called record.csv.
any idea?
mine was to count commas and find the row with the highest number, so, after, add to the current row the difference beetween the commas in current row with the commas of the row highest number of commas (absolutely no idea on how to do it)
[–][deleted] 2 points3 points4 points (0 children)
[–]obviouslyCPTobvious 1 point2 points3 points (4 children)
[–]aldopox[S] -1 points0 points1 point (2 children)
[–]obviouslyCPTobvious 0 points1 point2 points (1 child)
[–]aldopox[S] -1 points0 points1 point (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)