[AstroPy] write ascii table without the head row

Aldcroft, Thomas aldcroft at head.cfa.harvard.edu
Thu May 8 09:49:39 EDT 2014


Assuming you have an astropy Table named `table`, you can do:

>>> from astropy.io import ascii
>>> ascii.write(table, filename, format='no_header')

or

>>> table.write(filename, format='ascii.no_header')

- Tom


On Thu, May 8, 2014 at 5:38 AM, Hong Xu <hong at topbug.net> wrote:

> Hi,
>
> Is it possible to write an ascii table without the head row, i.e. the
> row containing the name of the columns?
>
> Thanks!
> Hong
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140508/ec52f9bf/attachment.html>


More information about the AstroPy mailing list