Note

This is an old version of the documentation. See http://docs.astropy.org/en/stable for the latest version.

unique

astropy.table.unique(input_table, keys=None, silent=False)[source] [edit on github]

Returns the unique rows of a table.

Parameters:

input_table : Table object or a value that

will initialize a `~astropy.table.Table` object

Input table.

keys : str or list of str

Name(s) of column(s) used to unique rows. Default is to use all columns.

silent : boolean

If True masked value column(s) are silently removed from keys. If False an exception is raised when keys contains masked value column(s). Default is False.

Returns:

unique_table : Table object

Table containing only the unique rays of input_table.