Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'feedback.': 0.04; 'column': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '>on': 0.16; 'csv': 0.16; 'editor,': 0.16; 'itself,': 0.16; 'message- id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:CSV': 0.16; 'subject:Writing': 0.16; 'subject:dictionaries': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'file,': 0.19; 'value.': 0.19; 'select': 0.22; 'import': 0.22; 'text.': 0.24; 'url:home': 0.24; 'define': 0.26; 'excel': 0.26; 'header:X-Complaints-To:1': 0.27; 'correct': 0.29; 'chris': 0.29; 'subject:list': 0.30; 'file': 0.32; 'text': 0.33; 'open': 0.33; 'plain': 0.33; 'problem': 0.35; "can't": 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'should': 0.36; 'wrong': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'blank': 0.60; 'tell': 0.60; 'more': 0.64; '2015': 0.84; 'everything,': 0.84; 'excel.': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Writing list of dictionaries to CSV Date: Wed, 06 May 2015 09:14:11 -0400 Organization: IISS Elusive Unicorn References: <5bd0afb3-d2d4-469f-be39-5869f01adc92@googlegroups.com> <072badd6-0542-468a-99bd-cc3a4ffc7156@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-176-228.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430918113 news.xs4all.nl 2916 [2001:888:2000:d::a6]:46153 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90054 On Wed, 6 May 2015 16:34:33 +1000, Chris Angelico declaimed the following: >On Wed, May 6, 2015 at 3:32 PM, Kashif Rana wrote: >> thanks for the feedback. I think its problem with excel itself, showing wrong value. Because when I opened the csv file in text editor, I can see correct value but opening in excel showing wrong value. What I can do to see correct in excel as well. >> > >Simple fix: Ditch Excel. > >Slightly more complicated fix: Open the file, then select everything, >and tell Excel that it's plain text. You can't say that in the CSV >file. > Or (manually): /don't/ "open" the CSV file... Open a blank Excel document, and IMPORT the CSV -- as part of the import process you can then define what type of data each column should be treated as. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/