[Numpy-discussion] extracting data from ODF files

Emmanuelle Gouillart emmanuelle.gouillart@normalesup....
Tue Jan 5 15:23:08 CST 2010


Hi Manuel,

you may save your odf file as a csv (comma separated value) file with
OpenOffice, then use np.loadtxt, specifying the 'delimiter' keyword:

myarray = np.loadtxt('myfile.csv', delimiter=',')

Cheers,

Emmanuelle

On Tue, Jan 05, 2010 at 10:14:54PM +0100, Manuel Wittchen wrote:
> Hi,

> is there a (simple) solution to extract data from OpenDocument files
> (espacially OpenOffice.org Calc files) into a Numpy Array? At the
> moment I copy the colums from OO.org Calc manually into a
> tab-separatet Plaintext file which is quite annoying.

> Regards,
> Manuel Wittchen
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion


More information about the NumPy-Discussion mailing list