Skip to content

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 loadObjectIntoNdframe 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/frame.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