Use polars rust crate as engine #725
Replies: 5 comments 15 replies
-
Thanks @baggiponte for the suggestion. I've actually been eyeing polars for a while (#480), but haven't gotten around to integrating it. Some other ideas apart from custom sort order in #480 are:
WDYT? Do you have other ideas for a specific polars-qsv integration? |
Beta Was this translation helpful? Give feedback.
-
Joel,
what I am missing most at the moment is a GROUP BY statement, so I have to pipe to CSVQ.
For RW example, I get payment remittance advisories (from health care funders, and each has its own, one weirder than the other) and besides tracking whether they paid everything I claimed and when, I like to see the bottom line, per patient, per (service) day, per whatnot. Or take Zoom attendance lists, where they differentiate between waiting room and attendance proper, and can have you multiple lines (times) per attendee when you drop off and reconnect.
I also would like to have some form of UNION statement, so I can display totals as the last line of the table in one pipeline which I currently have to do via temp files or CSVQ either of which is a schlepp :-)-O.
Or am I overlooking something?
|
Beta Was this translation helpful? Give feedback.
-
Joel,
writing LUAU scripts for begin/end to do a
SELECT client, SUM(paid) as total GROUP BY client
is a bit of an effort for a casual user like me.
join —full does not do what I want
SELECT client, SUM(paid) as total GROUP BY client
UNION
SELECT ‘Total’, SUM(pad)
|
Beta Was this translation helpful? Give feedback.
-
yes, overkill for my current needs, but maybe looming in the future.
el
…On 18. Feb 2023 at 09:19 +0200, Derek Mahar ***@***.***>, wrote:
@ondohotola, have you taken a look at DuckDB?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@baggiponte, just wanted to confirm that qsv is now using the polars engine with the There will be more polars-powered commands in future releases ( |
Beta Was this translation helpful? Give feedback.
-
Polars is emerging as a powerful contestant in (python's) dataframe showdown. Why would this matter to qsv? Polars engine is written in rust, so you might find inspiration or straight up use that as data manipulation library. This would/could also enable using qsv with parquet files which can't be viewed as they are binary. Also polars supports lazy execution and soon streaming/out of core execution will be released.
Repo: https://github.com/pola-rs/polars
Beta Was this translation helpful? Give feedback.
All reactions