[Tutor] extracting information from a complex dict.

Mats Wichmann mats at wichmann.us
Sun Jan 31 12:42:00 EST 2021


On 1/30/21 11:16 PM, mhysnm1964 at gmail.com wrote:
> All,
> 
>   
> 
> Using windows and python 3.8.
> 
>   
> 
> I need to convert a complex dict into a list. Then I am saving the list as a
> CSV. I know there is more than likely a library which can convert the tree
> (dict) into a CSV file. But I want to learn recursive functions. I have
> learnt the basics when using maths functions. Thus I understand the basic
> logic of recursive functions. Now I am trying to do something more
> difficult.

> Hope someone can give me some pointers.

On a different tack than the useful advice otherwise posted here, the 
pandas library has considerable support for going from JSON formats to 
other formats such as csv, you might want to take a look and see if 
someone has done the hard work for you already (yes it's quite possible 
that the particular format described here will defeat you, but then 
again maybe not).




More information about the Tutor mailing list