Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
19
Task/CSV-data-manipulation/Logo/csv-data-manipulation-1.logo
Normal file
19
Task/CSV-data-manipulation/Logo/csv-data-manipulation-1.logo
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
to csv.data.manipulation :in :out
|
||||
local [header line list sum]
|
||||
openread :in
|
||||
setread :in
|
||||
openwrite :out
|
||||
setwrite :out
|
||||
make "header readword
|
||||
print word :header ",SUM
|
||||
while [not eofp] [
|
||||
make "line readword
|
||||
make "list parse map [ifelse equalp ? ", ["\ ] [?]] :line
|
||||
make "sum apply "sum :list
|
||||
print (word :line "\, :sum)
|
||||
]
|
||||
close :in
|
||||
setread []
|
||||
close :out
|
||||
setwrite []
|
||||
end
|
||||
|
|
@ -0,0 +1 @@
|
|||
csv.data.manipulation "data.csv "output.csv
|
||||
Loading…
Add table
Add a link
Reference in a new issue