You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original csv is not modified. `wasRead` is false if the csv is empty or the field name does not exist; in that case a copy of the csv is returned.
371
371
372
+
`FacetCount` returns a map that counts how many times each string appears in a column (data cells only, the header cell is never counted). Case does not matter by default: `Foo`, `foo` and `FOO` are counted together under the lower-case key `foo`:
373
+
374
+
```go
375
+
counts, wasRead:= x.FacetCount("Country")
376
+
```
377
+
378
+
`wasRead` is false if the csv is empty, the field name is empty, or the field name does not exist; in that case an empty map is returned. A csv with only the header row returns an empty map and true.
379
+
380
+
`FacetCountCaseSensitive` is the same but case matters: `Foo`, `foo` and `FOO` are counted as separate entries:
`GroupBy` collapses the data rows into one output row per group, where a group is all the data rows whose key fields have the same values. The output header row is the key field names followed by the `As` name of each aggregation; each output data row is the key values followed by one cell per aggregation. Groups appear in order of first occurrence:
0 commit comments