fix(dataframe): ensure consistent column order during creation from objects by sujay000 · Pull Request #668 · javascriptdata/danfojs

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.