I tried to compress data using Arrow.jl
. However, the test run using the below code didn’t show any size reduction (or compression). May I seek advice on my implementation, like is there something I am doing wrong?
Code:
using CSV, DataFrames, Arrow
df = CSV.read("input_data.csv", DataFrame)
function compress_data(data::DataFrame)
io = Arrow.tobuffer(data)
d = Arrow.Table(io; convert=false)
Arrow.write("output_data.lz4", d; compress=:lz4)
end
compress_data(df)
Look forward to the suggestions. Thanks!