Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45742
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'column': 0.07; 'subject:file': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rows': 0.09; 'python': 0.11; 'columns': 0.16; 'files)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:arithmetic': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'advance.': 0.19; 'header:User-Agent:1': 0.23; 'url:moin': 0.24; 'subject:/': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'code': 0.31; "skip:' 10": 0.31; 'url:wiki': 0.31; 'file': 0.32; 'text': 0.33; 'url:python': 0.33; 'could': 0.34; 'but': 0.35; 'url:org': 0.36; 'thank': 0.38; 'follows:': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'simple': 0.61; "you're": 0.61; 'first': 0.61; 'dear': 0.65; 'charset:windows-1252': 0.65; 'below:': 0.68; '(10': 0.84; 'received:89': 0.85; 'wilson': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: file I/O and arithmetic calculation |
| Date | Wed, 22 May 2013 17:23:43 +0100 |
| References | <CAK9meDsND9501=2ydmCAFi4s6+fw+rTrDGJA2qpEyXKoae6Axw@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Gmane-NNTP-Posting-Host | host-89-240-174-199.as13285.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
| In-Reply-To | <CAK9meDsND9501=2ydmCAFi4s6+fw+rTrDGJA2qpEyXKoae6Axw@mail.gmail.com> |
| X-Antivirus | avast! (VPS 130522-0, 22/05/2013), Outbound message |
| X-Antivirus-Status | Clean |
| 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.1971.1369239821.3114.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1369239821 news.xs4all.nl 15952 [2001:888:2000:d::a6]:60490 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:45742 |
Show key headers only | View raw
On 22/05/2013 17:13, Keira Wilson wrote: > Dear all, > > I would appreciate if someone could write a simple python code for the > purpose below: > > I have five text files each of 10 columns by 10 rows as follows: > > > |file_one= 'C:/test/1.txt' > file_two= 'C:/test/2.txt' > . . . > file_five= 'C:/test/5.txt'| > > I want to calculate the mean of first row (10 elements) for each file (5 > files), if mean of first column (10 elements) of each file (5 files) is 50. > > Thank you in advance. > > Keira > Sorry but we don't do homework. -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: file I/O and arithmetic calculation Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-05-22 17:23 +0100
csiph-web