Giter Club home page Giter Club logo

Comments (12)

josevalim avatar josevalim commented on September 28, 2024

It should be possible today. Maybe we just need to relax the checks. Can you give it a try please?

from explorer.

dkuku avatar dkuku commented on September 28, 2024

Sorry - I clicked enter to early, I was updating the query but it's not livebook - here it just sends the message - it works with the example I pasted but it can be simpler with just one column

from explorer.

josevalim avatar josevalim commented on September 28, 2024

Sorry, I am confused then. Can you please provide a more complete example?

from explorer.

dkuku avatar dkuku commented on September 28, 2024

I'm thinking that when we know that this is a categorical value then we don't need to create another column just to create the ones and zeros.
Explorer.DataFrame.pivot_wider(df, "g") should be enough. Maybe with an option to fill empty values with zeros. I think this is a common usecase when preparing data for further processing.

from explorer.

dkuku avatar dkuku commented on September 28, 2024

also instead of having second column as a single value would be an option
Explorer.DataFrame.pivot_wider(df, "g", 1)

from explorer.

josevalim avatar josevalim commented on September 28, 2024

Let’s go in parts then. :) A PR to support categorical values is welcome. It is probably a small change and adding categories to the list of supports columns. Do you want to give it a try? :)

from explorer.

dkuku avatar dkuku commented on September 28, 2024

I may try, I never looked at the code but when it's elixir then I should be fine.

from explorer.

josevalim avatar josevalim commented on September 28, 2024

Yes, my assumption is that we only need to change the elixir bits

from explorer.

dkuku avatar dkuku commented on September 28, 2024

We just need to align how it should look. I think that creating additional column is not needed here. In other places we also accept either column or scalar value.

from explorer.

dkuku avatar dkuku commented on September 28, 2024

I probably won't do much here - when trying to run the tests it requires nightly rust and when I run it with nightly I'm getting:

RUST_BACKTRACE=1 mix test                                                                                                                                                   
...............thread '<unnamed>' panicked at 'panic in a function that cannot unwind', library/core/src/panicking.rs:126:5
stack backtrace:
..........................[1]    343905 segmentation fault (core dumped)  RUST_BACKTRACE=1 mix test

from explorer.

philss avatar philss commented on September 28, 2024

@dkuku please use the nightly version from our CI, which is nightly-2023-02-14.

from explorer.

dkuku avatar dkuku commented on September 28, 2024

it works with this version - thanks, I installed it with asdf.
Also I found the solution to my problem. It's the dummies function.

from explorer.

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.