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
I'm ingesting data from an API that I want to enumerate, and assign that enumeration to an ID field. You can imagine that the data is sometimes in the order I want, and sometimes I am required to order it myself -- essentially what's below is a MVE, but the concept is still the same.
This spec seems WAY more readable. 😃 I found the example from this old issue, totally didn't think of simply calling dict on the existing mapping, which is totally what I want.
Awesome! Thanks for checking past issues. I sometimes mine those for tips, too. If this sort of thing comes up often enough, maybe we can make it a snippet? https://glom.readthedocs.io/en/latest/snippets.html
I'm ingesting data from an API that I want to enumerate, and assign that enumeration to an
ID
field. You can imagine that thedata
is sometimes in the order I want, and sometimes I am required to order it myself -- essentially what's below is a MVE, but the concept is still the same.While I've got this working, it's feels really terse and I'm curious if there's a better way here.
The text was updated successfully, but these errors were encountered: