Open
Description
I have noticed a lot of pygbif
functions return sometimes rather nested dicts rather than something more flat like a pandas df.
I have always thought that one of the advantages of rgbif
was that is sort of normalizes the json ouput for you.
I think would could start to provide some methods for normalizes nested output from pygbif.
Metadata
Assignees
Labels
No labels
Activity
CecSve commentedon Apr 24, 2024
That would be great. Maybe allow for users to still get the dicts output also - I imagine some Python users are used to that.
abubelinha commentedon May 1, 2024
Of course. That should be the default.
Otherwise all current pygbif-based applications would stop working
ManonGros commentedon May 6, 2024
I personally prefer dictionaries if I am working with nested objects like json outputs. Plus it is so easy to transform them into your favourite data frame object. Choosing pandas is a bit arbitrary.