Code Monkey home page Code Monkey logo

Comments (4)

mcabbott avatar mcabbott commented on June 12, 2024

Thanks for taking a look, this is all very much a first attempt, and I'm sure it could be better.

Tables.columnsreturns a view for the :value column, but the others it makes new arrays, as a comprehension using Iterators.product. Is there an obvious lazy object that could be used? From my comments it looks like (1) a generator is insufficient, and (2) I didn't want to depend on Kronecker.jl or something, just to get a lazy product.

Ah, perhaps you are saying that each column then wants to be wrapped in Tables.CopiedColumns? That would be simple.

from axiskeys.jl.

bkamins avatar bkamins commented on June 12, 2024

Given your comment I think you can leave things as-is, and we have to copy columns of this NamedTuple when creating a DataFrame.

A small note is that using vec it is non obvoius that you are sharing data with the source. Probably it would be good to document it (if it is not documented already).

From DataFrames.jl this issue can be closed (so I am closing it). Thank you!

from axiskeys.jl.

mcabbott avatar mcabbott commented on June 12, 2024

Wait it seems like this ought to be consistent at least, and not make a view of just one column, without flagging things? If adding Tables.CopiedColumns would help that would be super-easy.

from axiskeys.jl.

bkamins avatar bkamins commented on June 12, 2024

I think Tables.CopiedColumns can be omitted - it was initially designed only for cases when Tables.columntable were intended to create only a temporary object.

from axiskeys.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.