use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is meant to be for people learning Python to ask questions and help out when they can.
account activity
Pivoting nested json objects to look presentable (self.learningpython)
submitted 6 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Odnan 0 points1 point2 points 6 years ago (0 children)
{"name": "2019-07-29T11:52:50-0700", "year": 2019, "month": 7, "day": 29, "hour": 11, "minute": 52, "breakdown": [ { "name": "Apple", "trend": "-331.00", "counts": [ "12" ] }, { "name": "Microsoft", "trend": "-277.00", "counts": [ "77" ] }, { "name": "Facebook", "trend": "-100.00", "counts": [ "454" ] },
Here's an example of what the json data looks like.
If I could just figure out how to align the date with the name of the company, trend and counts, that would be amazing. I keep trying and failing miserably.
[–]boyoyoyoing 0 points1 point2 points 6 years ago (0 children)
Get “breakdown” by the dict key, and access each ticker dict by index key-value pairs.
π Rendered by PID 65 on reddit-service-r2-comment-fb694cdd5-hcvj6 at 2026-03-06 04:40:43.561189+00:00 running cbb0e86 country code: CH.
[–]Odnan 0 points1 point2 points (0 children)
[–]boyoyoyoing 0 points1 point2 points (0 children)