Coder Social home page Coder Social logo

Comments (4)

bkamins avatar bkamins commented on July 28, 2024

I would add dependency on PooledArrays.jl as it is lightweight and do as @dmbates suggests. Then, in particular this benefits DataFrames.jl which has a fast path for PooledVector.

from arrow-julia.

quinnj avatar quinnj commented on July 28, 2024

Hmmm, yes, we should have better copy definitions for Arrow column types. But we should also wrap Arrow.Table in Tables.CopiedColumns so DataFrames doesn't make a copy by default; the point of Arrow.jl is to very efficiently load data and be able to do DataFrames stuff on them, so we want to ensure the default avoids the copying. We should also highlight in the README/docs that the arrow format is very much immutable; you can run great analytics/queries over the data, but for mutating, it's an explicit step to convert away from the arrow formatted columns.

from arrow-julia.

bkamins avatar bkamins commented on July 28, 2024

We should have better copy definitions for Arrow column types

agreed

But we should also wrap Arrow.Table in Tables.CopiedColumns so DataFrames doesn't make a copy by default

This would be OK given the objective of the package, but as you note - we then should be very clear that this is the case. Note that in old CSV.jl 90% of issues/questions raised in DataFrames.jl were about immutability of returned columns (in the time they were immutable). And we then should add an instruction how to perform a copy somewhere in the docs.

from arrow-julia.

quinnj avatar quinnj commented on July 28, 2024

Ok, fix is up: #21

from arrow-julia.

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.