Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!feed.xsnews.nl!fbe001.ams.xsnews.nl!ecngs!feeder.ecngs.de!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'output,': 0.09; '-tkc': 0.16; 'csv': 0.16; 'dictionaries': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'subject:CSV': 0.16; 'subject:Writing': 0.16; 'subject:dictionaries': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'header:In-Reply-To:1': 0.27; 'subject:list': 0.30; 'file': 0.32; 'becomes': 0.33; 'raw': 0.33; 'but': 0.35; 'charset:us-ascii': 0.36; 'list': 0.37; 'received:10': 0.37; 'being': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'matter': 0.61; 'making': 0.63; 'received:46': 0.66; 'spreadsheet': 0.84 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1430847223455:4055944651 X-MC-Ingress-Time: 1430847223455 Date: Tue, 5 May 2015 12:34:22 -0500 From: Tim Chase To: python-list@python.org Subject: Re: Writing list of dictionaries to CSV In-Reply-To: <5bd0afb3-d2d4-469f-be39-5869f01adc92@googlegroups.com> References: <5bd0afb3-d2d4-469f-be39-5869f01adc92@googlegroups.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430863621 news.xs4all.nl 2967 [2001:888:2000:d::a6]:52221 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90006 On 2015-05-05 10:09, Kashif Rana wrote: > When I am writing list of dictionaries to CSV file, the key > 'schedule' has value 'Mar 2012' becomes Mar-12. How are you making this determination? Are you looking at the raw CSV output, or are you looking at the CSV file loaded into a spreadsheet like Excel? I suspect that it's a matter of the file being what you want, but your spreadsheet mangling/reformatting it visually. -tkc