Giter Site home page Giter Site logo

serialize DataFrame about dataframes.jl HOT 4 CLOSED

juliadata avatar juliadata commented on August 20, 2024
serialize DataFrame

from dataframes.jl.

Comments (4)

tshort avatar tshort commented on August 20, 2024

Built-in serialization works for the following example:

d = DataFrame(quote
    a = [1:5]
    b = letters[11:15]
end)
f = open("t.jbin", "w")
serialize(f, d)
close(f)
f = open("t.jbin")
dd = deserialize(f)()
close(f)
dd | dump

A nicer wrapper might be nice.

from dataframes.jl.

doobwa avatar doobwa commented on August 20, 2024

Are there cases where this does not work? Can we close this?

As far as wrappers go, I think save makes sense, but is there a way we could use load for loading it?

Also, I think I saw that they discussed using .jld as the suffix for such things.

from dataframes.jl.

tshort avatar tshort commented on August 20, 2024

I don't know of cases where this doesn't work (I haven't tested it much). I think we can close this.

For wrappers, save sounds good. I don't think we can use load as that's used for reading in Julia scripts (along with include and require).

.jld also rings a bell. Maybe ping the mailing list, or if you or someone writes a wrapper, submit it to core because it's not JuliaData specific.

from dataframes.jl.

doobwa avatar doobwa commented on August 20, 2024

OK, I included your code using save and load_df (for now at least): e4b7b21

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.