Skip to content

jweyrich/csvpred

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csvpred

Query a CSV file using simple predicates.

How to install

cd csvpred
brew install pipenv
pipenv install

How to use

Examples:

pipenv run python3 -m csvpred -i samples/hurricanes.csv -q '.Month == Aug' --debug-ast | jq
pipenv run python3 -m csvpred -i samples/hurricanes.csv -q '.Average == 0.5' --debug-ast | jq
pipenv run python3 -m csvpred -i samples/hurricanes.csv \
  -f month,avg,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015 \
  -q '.month == Aug'
pipenv run python3 -m csvpred -i samples/hurricanes.csv \
  -f month,avg,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015 \
  -q '.avg == 0.5'