Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45741
| From | Keira Wilson <wilkeira@gmail.com> |
|---|---|
| Date | 2013-05-23 01:13 +0900 |
| Subject | file I/O and arithmetic calculation |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1970.1369239228.3114.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
file I/O and arithmetic calculation Keira Wilson <wilkeira@gmail.com> - 2013-05-23 01:13 +0900
Re: file I/O and arithmetic calculation Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-22 23:54 +0000
RE: file I/O and arithmetic calculation Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-23 03:02 +0300
csiph-web