Ah, I see.I use SQLite for lots of things, but this is unlikely to be one of them! The data I am dealing with comes from a web API as a JSON array which gets converted directly into the Dictionary structure I have displayed. Even if I wanted to store the individual data pairs in a database (which I don't), I would still have to get them out of the Dictionary first!You probably want to use a database. I'd suggest SQLite is an ideal candidate.
You probably have no choice but to walk through the reported data and pull it out by brute force. Once you have that going you might be able to make it more elegant using list comprehension (or dictionary comprehension).
However, once you have extracted the data it would probably be more useful in a database (which basically you have demonstrated).
Statistics: Posted by ame — Mon Jan 13, 2025 10:54 pm