Having such an object
obj = [{id:1, val:"blabla"}, {id:2, val:"gnagna"}]
How can we index obj with id like obj[id==1] (Pandas Pythonic way).
I assume the followings:
- Objects inside the array all have ids.
- The first appearing id that matches is taken, assuming other objects matching are equal.
{id:1, val:"blabla"}) by their id?obj[0]->id