Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92916

Re: JSON Object to CSV Question

Newsgroups comp.lang.python
Date 2015-06-20 08:04 -0700
References (4 earlier) <CAC9q6M65WD70Wm0=QDqMD4mis4wSB3xkO-k8pnjn9u-+A3kPLA@mail.gmail.com> <CAB1GNpTPGoAkOYNHQV8HGNOQV8XjFcGft=mxgL+K=4_OD+zWkQ@mail.gmail.com> <CAC9q6M7uX0yeWoQQCJjD_vTwyfCaevLX4Y8-HctLcqYV--N60Q@mail.gmail.com> <CAB1GNpRjjqPa3aopSoagRrZYoff7OpNXa1YZrQ_VsFOZ0VyW0A@mail.gmail.com> <mailman.652.1434780605.13271.python-list@python.org>
Message-ID <d0c5bac4-33ea-4356-8848-32bf962386c9@googlegroups.com> (permalink)
Subject Re: JSON Object to CSV Question
From Ned Batchelder <ned@nedbatchelder.com>

Show all headers | View raw


On Saturday, June 20, 2015 at 2:10:51 AM UTC-4, Sahlusar wrote:
> @Joonas:
> 
> 
> The previous example was a typo. Please use the below example as a case study. 
> 
> 
> 
> 
> {'D_B': ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'], 'F_Int32': ['0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0',  '0'], 'OTF': '0', 'PBDS_Double': ['0', '0', '0', '0', '0', '0', '0', '0'], 'SCS_String': ['1', '2']}
> 
> 
> All of the questions regarding XML I have asked. I have to work within their parameters. The CSV, for example may look like this:
> 
> 
> DLA,FC,PC,WC,CN,Description,Code,CMC 
> 0,00000,0,0,,,0,0

There isn't a single word in common between the Python dictionary you've
shown and the CSV sample output you've shown.  There's no way anyone can
tell what mapping you intend here.

--Ned.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: JSON Object to CSV Question Steve Hayes <hayesstw@telkomsa.net> - 2015-06-19 07:21 +0200
  Re: JSON Object to CSV Question Saran Ahluwalia <ahlusar.ahluwalia@gmail.com> - 2015-06-19 05:50 -0400
    Re: JSON Object to CSV Question Cecil Westerhof <Cecil@decebal.nl> - 2015-06-19 12:07 +0200
      Re: JSON Object to CSV Question Saran Ahluwalia <ahlusar.ahluwalia@gmail.com> - 2015-06-19 06:24 -0400
      Re: JSON Object to CSV Question Sahlusar <ahlusar.ahluwalia@gmail.com> - 2015-06-19 05:47 -0700
        Re: JSON Object to CSV Question Sahlusar <ahlusar.ahluwalia@gmail.com> - 2015-06-19 06:44 -0700
    Re: JSON Object to CSV Question Steven D'Aprano <steve@pearwood.info> - 2015-06-20 00:47 +1000
      Re: JSON Object to CSV Question Joonas Liik <liik.joonas@gmail.com> - 2015-06-19 23:32 +0300
      Re: JSON Object to CSV Question Ned Batchelder <ned@nedbatchelder.com> - 2015-06-20 08:04 -0700

csiph-web