Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. splitrows col: column1 on: '\n' quote: '\"'
  2. split col: column1 on: ',' limit: 14 quote: '\"'
  3. header
  4. drop col: Flag_Description
  5. drop col: Unit
  6. drop col: Flag
  7. keep row: Note == '2010=100'
  8. drop col: Note
  9. drop col: Item_Code
  10. drop col: Area_Code
  11. drop col: Domain
  12. drop col: Domain_Code
  13. drop col: Months_Code
  14. keep row: Item == '\"Consumer Prices, General Indices (2010 = 100)\"'
  15. drop col: Year_Code
  16. drop col: Item
  17. derive value: max(Value) group: Area,Year as: 'max_Value'
  18. derive value: min(Value) group: Year,Area as: 'min_Value'
  19. keep row: (date(1970, 1, 1) <= Months) && (Months < date(1970, 2, 1))
  20. drop col: Months
  21. drop col: Value
  22. derive value: count() group: Area as: 'countentries'
  23. keep row: (17 <= countentries) && (countentries < 18)
  24. drop col: countentries
  25. keep row: in(Area, ['Brazil', 'Central African Republic', 'Germany', 'Mexico', 'Russian Federation', 'Saudi Arabia', 'Switzerland', 'United States of America'])
  26. delete row: Area == 'Brazil'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement