GithubHelp home page GithubHelp logo

What is the best way to write large DataFrames efficiently and with high performance in Julia while minimizing memory usage? about dataframes.jl HOT 4 CLOSED

Ujjwal4CULS avatar Ujjwal4CULS commented on June 3, 2024
What is the best way to write large DataFrames efficiently and with high performance in Julia while minimizing memory usage?

from dataframes.jl.

Comments (4)

bkamins avatar bkamins commented on June 3, 2024

Writing a data frame is not a part of DataFrames.jl functionality. I would assume that serializing it using the Serialization module should use least memory to write data (I assume this is what you ask for).

from dataframes.jl.

Ujjwal4CULS avatar Ujjwal4CULS commented on June 3, 2024

Which data format is the most efficient in Julia? The .arrow format consumes a lot of memory. For example, in R, the .fst format is considered the best for efficient memory usage and high performance. Similarly, in Julia, which format is optimal for writing DataFrames with high performance and memory efficiency?

from dataframes.jl.

bkamins avatar bkamins commented on June 3, 2024

Which data format is the most efficient in Julia?

There is no single format that is best in all aspects, so "the best" depends on many factors.
If you want to see a comparison of various formats performance you can have a look here: https://github.com/bkamins/Julia-DataFrames-Tutorial/blob/master/04_loadsave.ipynb. Note that these benchmarks report:

  • write time
  • load time
  • size on disk
  • memory used to write
  • memory used to read

(and even here you see that your question ends up a 5-criteria problem)

Also these are reported when run on a laptop using 1 thread. Benchmarks might be different when wanting best performance on a mulit-core server scenario.

Your question is essentially open ended and unrelated with DataFrames.jl (it is a general Julia question). Such questions are welcome, but it is best to discuss them in an open-ended forum, as you might get the best advice there (as me or other DataFrames.jl maintainers might not be aware of all the options). I recommend you to post it on https://discourse.julialang.org/.

from dataframes.jl.

Ujjwal4CULS avatar Ujjwal4CULS commented on June 3, 2024

Thank you very much for this great information.

from dataframes.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.