You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
[-]iget_records preserving ordering[/-][+]iget_records preserving order[/+]chfw commentedon 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 commentedon Jul 28, 2017
Please try with:
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.