Skip to content

iget_records preserving order #95

Closed

Description

@stephen-bunn

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.

Activity

  1. changed the title [-]iget_records preserving ordering[/-] [+]iget_records preserving order[/+] on Jul 28, 2017
  2. chfw commented on Jul 28, 2017

    @chfw
    Member

    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.

  3. chfw commented on Jul 28, 2017

    @chfw
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions