Ancestors

Toot

Written by Mark Asbach on 2025-01-14 at 11:05

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

Descendants

Written by Tim Schilling on 2025-01-14 at 11:24

@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

Written by Juanjo Salvador on 2025-01-14 at 11:47

@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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113826378725100232
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
262.011822 milliseconds
Gemini-to-HTML Time
0.500878 milliseconds

This content has been proxied by September (3851b).