knox revised this gist . Go to revision
1 file changed, 9 insertions
Polars-readme-3.sh(file created)
@@ -0,0 +1,9 @@ | |||
1 | + | # run an inline SQL query | |
2 | + | > polars -c "SELECT species, AVG(sepal_length) AS avg_sepal_length, AVG(sepal_width) AS avg_sepal_width FROM read_csv('docs/assets/data/iris.csv') GROUP BY species;" | |
3 | + | ||
4 | + | # run interactively | |
5 | + | > polars | |
6 | + | Polars CLI v0.3.0 | |
7 | + | Type .help for help. | |
8 | + | ||
9 | + | > SELECT species, AVG(sepal_length) AS avg_sepal_length, AVG(sepal_width) AS avg_sepal_width FROM read_csv('docs/assets/data/iris.csv') GROUP BY species; |
Newer
Older