Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39403
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: Import Json web data source to xls or csv |
| Date | 2013-02-21 09:36 +0100 |
| Organization | None |
| References | <51240f54$0$40361$4fafbaef@reader1.news.tin.it> <mailman.2076.1361325293.2939.python-list@python.org> <1d72c9b7-8543-4a1b-9c25-5bdf280e36c3@ru10g2000pbc.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2145.1361435751.2939.python-list@python.org> (permalink) |
rusi wrote: > On Feb 20, 6:54 am, Michael Herman <herma...@gmail.com> wrote: >> c = csv.writer(f) >> c.writerow([str(d["currency"]),str(d["symbol"]),str(d["bid"]), >> str(d["ask"]),str(d["currency_volume"])]) > Tried it with and without the str and there are small differences. The actual differences: float values are converted using repr() instead of str(), None values are converted to the empty str "". Both special cases make sense to me. So > Why do you use the str?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Import Json web data source to xls or csv io <maroso@libero.it> - 2013-02-19 23:48 +0000
Re: Import Json web data source to xls or csv Michael Herman <hermanmu@gmail.com> - 2013-02-19 17:54 -0800
Re: Import Json web data source to xls or csv io <maroso@libero.it> - 2013-02-20 07:13 +0000
Re: Import Json web data source to xls or csv Michael Herman <hermanmu@gmail.com> - 2013-02-20 10:27 -0800
Re: Import Json web data source to xls or csv rusi <rustompmody@gmail.com> - 2013-02-20 23:29 -0800
Re: Import Json web data source to xls or csv Peter Otten <__peter__@web.de> - 2013-02-21 09:36 +0100
Re: Import Json web data source to xls or csv Cousin Stanley <cousinstanley@gmail.com> - 2013-02-20 06:59 +0000
Re: Import Json web data source to xls or csv io <maroso@libero.it> - 2013-02-20 08:19 +0000
Re: Import Json web data source to xls or csv pyplexed <julius.welby@gmail.com> - 2013-02-20 02:47 -0800
Re: Import Json web data source to xls or csv io <maroso@libero.it> - 2013-02-21 00:27 +0000
csiph-web