Pulling values from a dictionary within a dictionary in Python

  Kiến thức lập trình

I have a very large dataset and I would like to pull out some specific points. I have no problem pulling the ‘term’ value in the first dictionary, but trying to pull ‘count’ and ‘date’ is not working out. I have uploaded an image linked below which shows the structure of my dataset.

I would like to have a table of ‘term’ ‘date’ ‘count’, if it is possible.

image of lists and dictionaries

Thank you for any advise given

Attempted using dicts and lists loops, but would print out the ‘term’ value byt ‘none’ for all others

New contributor

P.Harris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT