Guest User

Untitled

a guest
Jun 24th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. brew install coreutils
  2.  
  3. # File system hierarchy
  4. tree ~
  5. tree ~ | head
  6.  
  7. # convert json to csv via jq which is a lightweight and flexible command-line JSON processor.
  8.  
  9. # view json
  10. cat test.json | jq '.'
  11.  
  12. # view json keys
  13. cat test.json | jq 'keys'
  14.  
  15. # project key from all json
  16. cat test.json | jq '.key'
  17.  
  18. # select a sample from dataset
  19. cat titanic.csv | sample -r 0.2
  20.  
  21.  
  22. # BigML’s prediction API
  23. sudo pip install bigmler
Add Comment
Please, Sign In to add comment