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


Groups > comp.lang.python > #51699

Re: Editing tabular data [was: PEP8 79 char max]

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'modified': 0.07; 'pointless': 0.09; 'rows': 0.09; 'rows,': 0.09; 'subject: [': 0.09; 'python': 0.11; 'gui': 0.12; 'csv': 0.16; 'emacs,': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; "he'd": 0.16; 'opened.': 0.16; 'spreadsheet.': 0.16; 'subject:tabular': 0.16; 'sender:addr:gmail.com': 0.17; 'fix': 0.17; 'skip': 0.24; '(or': 0.24; 'header:In-Reply-To:1': 0.27; 'important.': 0.30; 'message- id:@mail.gmail.com': 0.30; 'that.': 0.31; 'file': 0.32; 'maintaining': 0.32; 'stuff': 0.32; 'text': 0.33; 'worked': 0.33; 'guess': 0.33; 'could': 0.34; 'problem': 0.35; 'agree': 0.35; 'tool': 0.35; 'editor': 0.35; 'hundreds': 0.35; 'late': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'really': 0.36; 'choosing': 0.36; 'data,': 0.36; 'subject:data': 0.36; 'next': 0.36; 'somebody': 0.38; 'subject:]': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'morning': 0.39; 'delete': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'ago,': 0.61; 'matter': 0.61; 'kind': 0.63; 'more': 0.64; 'love': 0.65; 'market': 0.66; 'here': 0.66; 'night,': 0.68; 'spreadsheet': 0.84; 'traders': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=meiGcPkqWKLiqKJptT6ZqYcasp66CY/cOXdOj4LU/1Q=; b=U5QW5jGspKrapzdk25R76rfA2pde5orEBZZe107K2D3LpRevDTa8ncHKYNRBq9hqn9 IqYvHTdLpIg7fOvdQPwiB83p72aX+jyUJNcaUa6pZbPPj57uMR+uBcMUBhjIUVuK+Gz/ 72LHdG1/0YFmFQjjFCwbAVmTCXxwjVCisPB4YJtxbTB6Ba+USr3cp+Qc7pE4ZFBIi+2o Imjy3dvI2RgSY8vrslRX/rhjBU32wszccQQOSnMSWA8xAYrObzd43HY++qsxK4Re8g6F OMm+obce/cCc50LMY2myb3445a5ZdUgsvYmXplSVsa8KmxBqNukFh/9If0mX2JZRQ73J BqlQ==
MIME-Version 1.0
X-Received by 10.50.118.74 with SMTP id kk10mr874711igb.2.1375299324732; Wed, 31 Jul 2013 12:35:24 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <ktbn0a$i7d$2@reader1.panix.com>
References <mailman.49.1375295978.1251.python-list@python.org> <ktbn0a$i7d$2@reader1.panix.com>
Date Wed, 31 Jul 2013 14:35:24 -0500
X-Google-Sender-Auth M_Kd3CVTMMaswK7I2r9dk_Xn1QM
Subject Re: Editing tabular data [was: PEP8 79 char max]
From Skip Montanaro <skip@pobox.com>
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.54.1375299334.1251.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375299334 news.xs4all.nl 15934 [2001:888:2000:d::a6]:44034
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51699

Show key headers only | View raw


>> My guess is it would be more foolproof to edit that stuff with a
>> spreadsheet.
>
> Many years ago, I worked with somebody who used a spreadsheet like
> that.

I really love Emacs, however...  One of the traders here where I work
(who shall not be named) had a space-delimited data file with hundreds
of rows and 50 or so columns.  I could never get him to edit it in any
kind of spreadsheet or put it in a database (expecting him to master
SQL would have been pointless - I would have had to write a GUI tool
for him).  He always modified it in Emacs, and would delete columns,
add extra spaces, fragmentary rows, etc.  He'd edit this file late at
night, the automated processes the next morning would crap out, and I
would scramble to try and find and fix the problem before the market
opened.

This is clearly a case where choosing the proper tool is important.  I
agree that using a spreadsheet to edit a 3x5 CSV file is likely
overkill (might just as well use Notepad or TextEdit), but tabular
data are tabular data, no matter how they might be delimited, and if
there are many of those little data critters, there are better tools
than a text editor (or Python IDE) for maintaining them.

Skip

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


Thread

Editing tabular data [was: PEP8 79 char max] Skip Montanaro <skip@pobox.com> - 2013-07-31 13:39 -0500
  Re: Editing tabular data [was: PEP8 79 char max] Grant Edwards <invalid@invalid.invalid> - 2013-07-31 19:02 +0000
    Re: Editing tabular data [was: PEP8 79 char max] Skip Montanaro <skip@pobox.com> - 2013-07-31 14:35 -0500
    Re: Editing tabular data [was: PEP8 79 char max] Chris Angelico <rosuav@gmail.com> - 2013-08-01 01:50 +0100
      Re: Editing tabular data [was: PEP8 79 char max] Neil Cerutti <neilc@norwich.edu> - 2013-08-01 14:04 +0000
      Re: Editing tabular data [was: PEP8 79 char max] wxjmfauth@gmail.com - 2013-08-02 02:15 -0700
    Re: Editing tabular data Ben Finney <ben+python@benfinney.id.au> - 2013-08-02 16:35 +1000
      Re: Editing tabular data rusi <rustompmody@gmail.com> - 2013-09-03 09:58 -0700
    LibreOffice (was: Editing tabular data) Ben Finney <ben+python@benfinney.id.au> - 2013-08-02 17:14 +1000
    Re: LibreOffice (was: Editing tabular data) Chris Angelico <rosuav@gmail.com> - 2013-08-02 10:37 +0100
      Re: LibreOffice (was: Editing tabular data) Grant Edwards <invalid@invalid.invalid> - 2013-08-02 14:00 +0000
    Re: LibreOffice Terry Reedy <tjreedy@udel.edu> - 2013-08-02 21:26 -0400
    Re: LibreOffice David Robinow <drobinow@gmail.com> - 2013-08-03 11:08 -0400
  Re: Editing tabular data [was: PEP8 79 char max] "Rhodri James" <rhodri@wildebst.demon.co.uk> - 2013-07-31 20:03 +0100
    Re: Editing tabular data [was: PEP8 79 char max] Neil Cerutti <neilc@norwich.edu> - 2013-07-31 19:07 +0000
  Re: Editing tabular data [was: PEP8 79 char max] Wanderer <wanderer@dialup4less.com> - 2013-07-31 13:37 -0700
    Re: Editing tabular data [was: PEP8 79 char max] Skip Montanaro <skip.montanaro@gmail.com> - 2013-07-31 18:40 -0500

csiph-web