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


Groups > comp.lang.python > #58430

Re: Automation

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <drsalists@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.054
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'conversions': 0.09; 'runs': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'cc:name:python list': 0.16; 'csv,': 0.16; 'xlrd': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'thanks.': 0.20; 'cc:addr:python.org': 0.22; 'this?': 0.23; '2.x': 0.24; 'platform,': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'getting': 0.31; 'too.': 0.31; '3.x': 0.31; 'apparently': 0.31; 'though.': 0.31; 'anyone': 0.31; 'file': 0.32; 'another': 0.32; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'being': 0.38; 'nov': 0.38; 'rather': 0.38; 'how': 0.40; "you're": 0.61; 'great': 0.65; 'deals': 0.65; 'to:addr:gmail.com': 0.65; 'saving': 0.69; 'business.': 0.80; 'locked': 0.84; 'these.': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hG+e11XGEXp61u3IqYEXH7U6ukbpImX7gaRfxTaUHKI=; b=NYjCOBcLyRrtTV1ZT96NGAYooWFVQ9jBW4abmSeF2pWZIDlmwW6iSyHig8q2PCse9n cVQNNp6gDY6CRnCZlrRltIYS8jL6+LP8pDOr0z+65PzAXVVJ550Rv6rw5FbRyp+PYLPA Msz664cILgwWJzKf1wPbcg+VoK5+pJZGx7ldZGWxVKjRq3po3a+q9syrJKhODTQI9V7q BDsl/lPyrTHhzI1hqLGgAp2YWO+e/O21twBpD4/Dyaub6803Fdrp/Sy2kFKS76ngOxV2 DT1WDFGbafIg4YlWaDp0mQqnv1xWCYrWGWNCkCI/08oNYUibqQiUroFXQGSAoyqYgPQ6 Kvww==
MIME-Version 1.0
X-Received by 10.194.201.225 with SMTP id kd1mr3371823wjc.35.1383539743322; Sun, 03 Nov 2013 20:35:43 -0800 (PST)
In-Reply-To <CAHq3d9A+Fud2JkDvdw=xOOmCGCviAsffpJOX6cf99KeS1H3Nfg@mail.gmail.com>
References <CAHq3d9A+Fud2JkDvdw=xOOmCGCviAsffpJOX6cf99KeS1H3Nfg@mail.gmail.com>
Date Sun, 3 Nov 2013 20:35:43 -0800
Subject Re: Automation
From Dan Stromberg <drsalists@gmail.com>
To Renato Barbosa Pim Pereira <renato.barbosa.pim.pereira@gmail.com>
Content-Type multipart/alternative; boundary=047d7b86f172eef8a704ea5272ea
Cc python list <python-list@python.org>
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 <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.2006.1383539750.18130.python-list@python.org> (permalink)
Lines 51
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1383539750 news.xs4all.nl 15863 [2001:888:2000:d::a6]:59245
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:58430

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, Nov 3, 2013 at 8:19 AM, Renato Barbosa Pim Pereira <
renato.barbosa.pim.pereira@gmail.com> wrote:

> I have one .xls file with the values of PV MV and SP, I wanna to calculate
> Kp Ki Kd with python from this file, can anyone give me any suggestion
> about how can I do this? From now, thanks.
>

You're being rather vague, so my answer is vague too.  I won't attempt to
deal with the formulas for your conversions - apparently that's your
business.

But for dealing with xls files, I recommend saving to and reading from .csv
files; Python deals great with these.

If you're not concerned about getting (further) locked into a dying,
binary-only platform, you could use xlrd and xlwt though.

It looks like xlrd runs on 2.x and 3.x, while xlwt is still 2.x only -
that's another reason to go with csv, which works well with 2.x and 3.x for
reading and writing.

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


Thread

Re: Automation Dan Stromberg <drsalists@gmail.com> - 2013-11-03 20:35 -0800

csiph-web