astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v5.2.1 »
- Data Tables (`astropy.table`) »
- QTable

# QTable

class astropy.table.QTable(data=None, masked=False, names=None, dtype=None, meta=None, copy=True, rows=None, copy_indices=True, units=None, descriptions=None, **kwargs)

  Bases: `Table`

  A class to represent tables of heterogeneous data.

  `QTable` provides a class for heterogeneous tabular data which can be easily modified, for instance adding columns or new rows.

  The `QTable` class is identical to `Table` except that columns with an associated `unit` attribute are converted to `Quantity` objects.

  See also:

  - https://docs.astropy.org/en/stable/table/

  - https://docs.astropy.org/en/stable/table/mixin_columns.html

  Parameters:
    data `numpy` `ndarray`, `python:dict`, `python:list`, astropy:table-like `object`, optional

      Data to initialize table.

    masked bool, optional

      Specify whether the table is masked.

    names `python:list`, optional

      Specify column names.

    dtype `python:list`, optional

      Specify column data types.

    meta `python:dict`, optional

      Metadata associated with the table.

    copy bool, optional

      Copy the input data. Default is True.

    rows `numpy` `ndarray`, `python:list` of `python:list`, optional

      Row-oriented data for table instead of `data` argument.

    copy_indices bool, optional

      Copy any indices in the input data. Default is True.

    **kwargs `python:dict`, optional

      Additional keyword args when converting table-like object.