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


Groups > comp.lang.python > #89995

Re: Writing list of dictionaries to CSV

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <mmr15@case.edu>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.081
X-Spam-Evidence '*H*': 0.84; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'coerced': 0.16; 'csv': 0.16; 'inputs': 0.16; 'received:209.85.213.176': 0.16; 'rules.': 0.16; 'subject:CSV': 0.16; 'subject:Writing': 0.16; 'subject:dictionaries': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'skip': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'header:In- Reply-To:1': 0.27; 'subject:list': 0.30; 'file': 0.32; 'text': 0.33; 'plain': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'dates': 0.36; 'received:209': 0.37; 'files': 0.38; 'according': 0.40; 'even': 0.60; 'such': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'default': 0.69; 'common,': 0.84; 'excel,': 0.84; 'excel.': 0.84; 'spreadsheet': 0.84
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=OnfmSXv4qxhXFeUv440kqILmZXK5sURcpB3DMDv2Hy8=; b=Hy3csNKa7immr1/vlcpcowK4VDxT3BH9fGH4t3GrmwkcPpzLhalA9mHbxvuzCUwwLz bHMeZKUVcCEC3yegZmKdk5L+DzIWvi8mTHbmELHERQwwmxCXCYBFCDSlEGQ0VpaEqipz aZbABon/wHFWgMdbaRt5H//GEn9jvgvdTD0H7Uiv7g7eSpWZLHjPtfmvcRAUCrjGzPBg 0JYdiUlkCXlJkLEH2Ly69mVby1mm63EkXfVNdJ/p4zwWDQKwNio8teGrhRXTO/ygXdDP wDUDgt6XNhgaopMzVCg8MjFJxAQwnTMbfeqmYhAGdBm5WcGcq3f8CigBXwQ44POhw4N7 ijbA==
X-Gm-Message-State ALoCoQkzTuXiPV11RZL8xlHDvGh5MU71bheBscsSk9o03C++9SOLsF8CiwE6qbA+RBwyeTObPqM047YSPwKrEt8S1Fz8UFr+TDzSeP2eUEIy4Mr+laWsKBGg+lV1Pf4zD4YimL+CNapw
X-Received by 10.43.12.136 with SMTP id pi8mr34394997icb.6.1430855004623; Tue, 05 May 2015 12:43:24 -0700 (PDT)
X-Received by 10.43.12.136 with SMTP id pi8mr34394991icb.6.1430855004554; Tue, 05 May 2015 12:43:24 -0700 (PDT)
From Matthew Ruffalo <mmr15@case.edu>
X-Google-Original-From Matthew Ruffalo <matthew.ruffalo@case.edu>
Date Tue, 05 May 2015 15:43:23 -0400
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version 1.0
To Skip Montanaro <skip.montanaro@gmail.com>
CC Python <python-list@python.org>
Subject Re: Writing list of dictionaries to CSV
References <5bd0afb3-d2d4-469f-be39-5869f01adc92@googlegroups.com> <554907BD.4040804@mrabarnett.plus.com> <CANc-5UzYmSvQMdUOTYf-g9jF4LjortNaQ9HxkkSsbP4BUXZheQ@mail.gmail.com>
In-Reply-To <CANc-5UzYmSvQMdUOTYf-g9jF4LjortNaQ9HxkkSsbP4BUXZheQ@mail.gmail.com>
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Junkmail-Whitelist YES (by domain whitelist at mpv2.tis.cwru.edu)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.138.1430855389.12865.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1430855389 news.xs4all.nl 2837 [2001:888:2000:d::a6]:52545
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:89995

Show key headers only | View raw


On 2015-05-05 14:25, Skip Montanaro wrote:
> More likely, viewing the CSV file in Excel, Gnumeric, or some other
> spreadsheet which interprets some inputs as dates and formats them
> according to its default rules. Skip 

This is depressingly common, and I've even received CSV and plain text
data files that had some gene names(!) coerced to dates via a trip
through Excel. SEPT9 was one such gene, I believe.

MMR...

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


Thread

Writing list of dictionaries to CSV Kashif Rana <kashifrana84@gmail.com> - 2015-05-05 10:09 -0700
  Re: Writing list of dictionaries to CSV MRAB <python@mrabarnett.plus.com> - 2015-05-05 19:11 +0100
  Re: Writing list of dictionaries to CSV Skip Montanaro <skip.montanaro@gmail.com> - 2015-05-05 13:25 -0500
  Re: Writing list of dictionaries to CSV Cecil Westerhof <Cecil@decebal.nl> - 2015-05-05 20:44 +0200
  Re: Writing list of dictionaries to CSV Matthew Ruffalo <mmr15@case.edu> - 2015-05-05 15:43 -0400
  Re: Writing list of dictionaries to CSV Tim Chase <python.list@tim.thechases.com> - 2015-05-05 12:34 -0500
  Re: Writing list of dictionaries to CSV Kashif Rana <kashifrana84@gmail.com> - 2015-05-05 22:32 -0700
    Re: Writing list of dictionaries to CSV Chris Angelico <rosuav@gmail.com> - 2015-05-06 16:34 +1000
    Re: Writing list of dictionaries to CSV Cecil Westerhof <Cecil@decebal.nl> - 2015-05-06 08:50 +0200
    Re: Writing list of dictionaries to CSV Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-05-06 09:14 -0400
    Re: Writing list of dictionaries to CSV MRAB <python@mrabarnett.plus.com> - 2015-05-06 19:08 +0100
    Re: Writing list of dictionaries to CSV Tim Chase <python.list@tim.thechases.com> - 2015-05-06 13:22 -0500
    Re: Writing list of dictionaries to CSV Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-06 12:27 -0600
    Re: Writing list of dictionaries to CSV Tim Chase <python.list@tim.thechases.com> - 2015-05-06 13:37 -0500
    Re: Writing list of dictionaries to CSV Denis McMahon <denismfmcmahon@gmail.com> - 2015-05-06 23:31 +0000
      Re: Writing list of dictionaries to CSV Tim Chase <python.list@tim.thechases.com> - 2015-05-06 20:22 -0500
      Re: Writing list of dictionaries to CSV Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-05-07 01:55 +0000
      Re: Writing list of dictionaries to CSV [correction] Tim Chase <python.list@tim.thechases.com> - 2015-05-06 20:52 -0500

csiph-web