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

iget_records preserving order #95

Closed
stephen-bunn opened this Issue Jul 28, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@stephen-bunn

stephen-bunn commented Jul 28, 2017

Is there any current method of preserving the ordering of the data read in from iget_records?

Potentially a way to either specify the method to utilize ordered dicts instead of normal ones?
Or maybe a list parameter in isave_as / save_as which specifies the ordering that a list of normal dictionary records should be saved in.

@stephen-bunn stephen-bunn changed the title from iget_records preserving ordering to iget_records preserving order Jul 28, 2017

@chfw

This comment has been minimized.

Member

chfw commented Jul 28, 2017

No, currently I don't think I have paid attention to it.

Yes, I can look at your suggestion. As a last resort, we could get a nominated list of column names to enforce the order.

@chfw chfw added the enhancement label Jul 28, 2017

@chfw chfw closed this in fbc3c48 Jul 28, 2017

@chfw

This comment has been minimized.

Member

chfw commented Jul 28, 2017

Please try with:

pip install https://github.com/pyexcel/pyexcel/archive/master.zip

By default the order is preserved as it returns an ordered dict. If custom order is required, please provide customer_headers=['a', 'preferred', 'order'] to those functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment