Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

reading xls file from python

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


hassen62 at voila

Sep 14, 2007, 2:56 PM

Post #1 of 4 (246 views)
Permalink
reading xls file from python

hi friends,
I have installed python 2.5 for windows in my pc, I have a file xls say "file.xls" in c:/python25. How I can read this files from Python. Many thanks in advance.
Hassen.


gagsl-py2 at yahoo

Sep 14, 2007, 8:50 PM

Post #2 of 4 (207 views)
Permalink
Re: reading xls file from python [In reply to]

En Fri, 14 Sep 2007 18:56:34 -0300, <hassen62 [at] voila> escribi�:

> I have installed python 2.5 for windows in my pc, I have a file xls say
> "file.xls" in c:/python25. How I can read this files from Python. Many
> thanks in advance.

Try xlrd: http://www.python.org/pypi/xlrd

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list


sjmachin at lexicon

Sep 15, 2007, 4:03 AM

Post #3 of 4 (211 views)
Permalink
Re: reading xls file from python [In reply to]

On 15/09/2007 1:50 PM, Gabriel Genellina wrote:
> En Fri, 14 Sep 2007 18:56:34 -0300, <hassen62 [at] voila> escribi�:
>
>> I have installed python 2.5 for windows in my pc, I have a file xls
>> say "file.xls" in c:/python25. How I can read this files from Python.
>> Many thanks in advance.
>
> Try xlrd: http://www.python.org/pypi/xlrd

In the interests of even-handedness:
http://www.velocityreviews.com/forums/t352440-how-to-read-excel-files-in-python.html
covers other possibilities.

OT: A note for the OP: It is not a good idea to store your data files
(example: file.xls) in the folder of some installed software (example:
c:/python25). You may need to re-install the software and this may trash
your data. Consider storing data files in folders whose names give some
hint as to their contents.

HTH,
John
--
http://mail.python.org/mailman/listinfo/python-list


sjmachin at lexicon

Sep 15, 2007, 4:03 AM

Post #4 of 4 (206 views)
Permalink
Re: reading xls file from python [In reply to]

On 15/09/2007 1:50 PM, Gabriel Genellina wrote:
> En Fri, 14 Sep 2007 18:56:34 -0300, <hassen62 [at] voila> escribi�:
>
>> I have installed python 2.5 for windows in my pc, I have a file xls
>> say "file.xls" in c:/python25. How I can read this files from Python.
>> Many thanks in advance.
>
> Try xlrd: http://www.python.org/pypi/xlrd

In the interests of even-handedness:
http://www.velocityreviews.com/forums/t352440-how-to-read-excel-files-in-python.html
covers other possibilities.

OT: A note for the OP: It is not a good idea to store your data files
(example: file.xls) in the folder of some installed software (example:
c:/python25). You may need to re-install the software and this may trash
your data. Consider storing data files in folders whose names give some
hint as to their contents.

HTH,
John
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.