RosettaCodeData/Task/Text-processing-2/Mathematica/text-processing-2.math

5 lines
241 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
data = Import["Readings.txt","TSV"]; Print["duplicated dates: "];
Select[Tally@data[[;;,1]], #[[2]]>1&][[;;,1]]//Column
Print["number of good records: ", Count[(Times@@#[[3;;All;;2]])& /@ data, 1],
" (out of a total of ", Length[data], ")"]