In case any #python #django experts are reading this: I would be very happy about tips regarding serialization of hierarchical data into (denormalized) tabular forms like CSV. Boosts are welcome!
https://stackoverflow.com/q/79354779/1798004
[#]fedihelp
=> More informations about this toot | More toots from ma@social.cologne
@ma have you considered looking at what https://github.com/django-commons/drf-excel/ does for inspiration?
=> More informations about this toot | More toots from CodenameTim@fosstodon.org
@ma Pandas is the easiest way to do it (or Polars, as you wish). Also I left you a reply in StackOverflow.
Sample code: https://gist.github.com/JuanjoSalvador/fd526606b03a46a9c478b8eca9dc73e3
=> More informations about this toot | More toots from jsalvador@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini