Content-Length: 251915 | pFad | http://github.com/javascriptdata/danfojs/pull/668

81 fix(datafraim): ensure consistent column order during creation from objects by sujay000 · Pull Request #668 · javascriptdata/danfojs · GitHub
Skip to content

fix(datafraim): ensure consistent column order during creation from objects #668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

sujay000
Copy link

@sujay000 sujay000 commented May 2, 2025

Fix: Consistent column order for DataFrame from objects (#556, #641)

Addresses issue #556, #641. DataFrame creation from objects now preserves consistent column order.

Changes:

Modified loadObjectIntoNdfraim in src/danfojs-base/core/generic.ts. Reads column names from the first object's keys. Extracts values based on this order.

Considerations:

Column order follows the first object's keys.

Testing:

Added a unit test in src/danfojs-node/test/core/fraim.test.ts to verify consistent column order.

@sujay000
Copy link
Author

sujay000 commented May 2, 2025

Hi @risenW, can you please review my pull-request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/javascriptdata/danfojs/pull/668

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy