astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v5.2.1 »
- ASCII Tables (`astropy.io.ascii`) »
- RST

# RST

class astropy.io.ascii.RST

  Bases: `FixedWidth`

  reStructuredText simple format table.

  See: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#simple-tables

  Example:

      ==== ===== ======
      Col1  Col2  Col3
      ==== ===== ======
        1    2.3  Hello
        2    4.5  Worlds
      ==== ===== ======

  Currently there is no support for reading tables which utilize continuation lines, or for ones which define column spans through the use of an additional line of dashes in the header.

  Methods Summary

  `write`(lines) | Write `table` as list of strings.

  Methods Documentation

  write(lines)

    Write `table` as list of strings.

    Parameters:
      table `Table`

        Input table data.

    Returns:
      lines `python:list`

        List of strings corresponding to ASCII table