FixedWidthTwoLine

class astropy.io.ascii.FixedWidthTwoLine(position_line=None, position_char='-', delimiter_pad=None, bookend=False, header_rows=None)[source]

Bases: FixedWidth

Fixed width table which has two header lines.

The first header line defines the column names and the second implicitly defines the column positions.

Examples:

# Typical case with column extent defined by ---- under column names.

 col1    col2         <== header_start = 0
-----  ------------   <== position_line = 1, position_char = "-"
  1     bee flies     <== data_start = 2
  2     fish swims

# Pretty-printed table

+------+------------+
| Col1 |   Col2     |
+------+------------+
|  1.2 | "hello"    |
|  2.4 | there world|
+------+------------+

See the Fixed-Width Gallery for specific usage examples.