58 lines
2 KiB
Text
58 lines
2 KiB
Text
[
|
|
{"type":"Name","value":"items"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"%\u003e%"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"NameFunction","value":"group_by"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"id"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"%\u003e%"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"NameFunction","value":"filter"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameFunction","value":"n"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumber","value":"2"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"%\u003e%"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"NameFunction","value":"mutate"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"count"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"n"},
|
|
{"type":"Punctuation","value":"())"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"%\u003e%"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"NameFunction","value":"ungroup"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"%\u003e%"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"NameFunction","value":"distinct"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"id"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":".keep_all"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"KeywordConstant","value":"TRUE"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n\t"},
|
|
{"type":"NameFunction","value":"write_csv"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralString","value":"\"items.csv\""},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n"}
|
|
]
|