GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use compression directly in DataFrame.to_csv() to save on disk space / IO. Would be nice to have support for xz compression there.
Similar to #8654, but I think in to_csv this has more added value.
I suppose if someone wanted to add additional compressor to read/write csv, this would be ok.
can you point to the canonical package which implements this compressor?
I haven't tried it myself, but it looks like for python 3 it would be https://docs.python.org/3/library/lzma.html. For 2.7 this looks like it: https://github.com/peterjc/backports.lzma
sure that looks reasonable.
ENH: xz compression in to_csv()
Thanks! I'll be using this immediately when the version comes out.