Comments (4)
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.
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.
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.
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)
- [BUG] fromCSV fails when there is a space in the path HOT 1
- [BUG] TypeError: Cannot read property 'toStringTag' of undefined HOT 3
- has the csv file been loaded successfully? HOT 1
- .push does not seem to work HOT 1
- add index to the DataFrame
- keep date as a type of data in DataFrame-js
- [BUG] Inconsistent left join results
- [QUESTION] Why does the aggregate function drops all columns ? HOT 2
- [BUG] Dataframe loaded from file doesn't identify missing values
- [BUG] Creating new DataFrame from array with duplicate column names
- [BUG] Typo in the documentation
- [FEATURE] - To be able to filter a DataFrame from a MongoDB JSON export by Object ID
- [BUG] Filtering is not working as expected HOT 1
- Documentation not available[BUG]
- [BUG]
- [BUG] DataFrame is not a constructor HOT 3
- [BUG] Definitions for filter and where functions missing boolean option
- [FEATURE] Improve error messages
- [BUG] Documentation page returning 401 unauthorized
- [BUG] Documentation showing wrong syntax for SQL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dataframe-js.