scala-polars icon indicating copy to clipboard operation
scala-polars copied to clipboard

Add method to convert a data frame to a JSON string

Open mtomko opened this issue 1 year ago • 3 comments

Adds support for getting data out of a DataFrame as JSON.

The current scala-polars bindings appear to support file I/O, but I couldn't find a good way to load data in to a DataFrame, run some transformations, and then get the results back out for programmatic access. We'd be interested in working on ways to export columns of data as Scala Vector or Array data types as well, but this gets us started.

I welcome suggestions, as I'm a novice when it comes both to Polars and Rust.

mtomko avatar Apr 02 '24 21:04 mtomko

PS, we'd probably also love to have the JSON come back as a byte array and skip the string conversion

mtomko avatar Apr 02 '24 21:04 mtomko

let me check this out and get back to you by Tuesday

chitralverma avatar Apr 18 '24 07:04 chitralverma

Thanks for looking into this, @chitralverma . Are there any updates yet? My team is considering using/contributing to this project but are wondering if anyone is still actively working on it.

tmgreen avatar May 13 '24 14:05 tmgreen