-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Ignoring order for deeply nested lists of dictionaries. #393
Comments
Hi @explorigin |
I'd like to convert the list at |
@explorigin Ah, I see. Ok, that makes more sense than what I mentioned above. I'm curious if this is a very common use case or not. |
It's common for me. :-) The example is a common REST API reply where you have a result and some metadata in one package. |
We now allow |
Is your feature request related to a problem? Please describe.
I have a dataset that looks like:
I'd like
group_by
to work with deep lists such as this.Describe the solution you'd like
Calling like
DeepDiff(old, new, ignore_order=True, group_by={"root['_embedded']['messages']": "id"})
would be able to apply different grouping to different areas in the dataset.Describe alternatives you've considered
I'll just have to manipulate my data myself prior to comparison. The disadvantage of this is that I don't get a diff that reflects the level of nesting of the list.
The text was updated successfully, but these errors were encountered: