Giter VIP home page Giter VIP logo

Comments (4)

Gmousse avatar Gmousse commented on May 12, 2024 1

Hey. Thanks for your issue.
Indeed it seems that something is broken with the joins... I see why, my bad.

I will take a look in few hours to patch this

from dataframe-js.

Gmousse avatar Gmousse commented on May 12, 2024 1

Hey @PaulMest, I have created a PR #20 containing the modifications on join methods (and a randomly created .diff method) and new tests.

Please take a look and try this (branch hotfix/1.2.2 if you want to pull it).

from dataframe-js.

PaulMest avatar PaulMest commented on May 12, 2024

Here is a sample test that you can add to your test suite to verify the underlying logic is fixed.

    const dfNew1 = new DataFrame({
        id: [1, 2, 3, 5],
        value: [1.01, 2.01, 3.01, 5.01],
    }, ['id', 'value']);
    df1.show();

    const dfNew2 = new DataFrame({
        id: [1, 2, 3, 4],
        value2: [1.02, 2.02, 3.02, 4.02],
    }, ['id', 'value2']);

    assert.deepEqual(
      dfNew1.fullJoin(dfNew2, 'id').sortBy('id').toCollection(), [
        { id: 1, value: 1.01, value2: 1.02 },
        { id: 2, value: 2.01, value2: 2.02 },
        { id: 3, value: 3.01, value2: 3.02 },
        { id: 4, value: undefined, value2: 4.02 },
        { id: 5, value: 5.01, value2: undefined },
      ], 'NEW full joined.'
    );

from dataframe-js.

Gmousse avatar Gmousse commented on May 12, 2024

Thanks again @PaulMest for this user feedback.
The hotfix was merged and can now be pulled with npm.

Stay tuned with the project and contribute (with PRs) if you want !

from dataframe-js.

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.