skbio.metadata.NumericMetadataColumn#

class skbio.metadata.NumericMetadataColumn(series, missing_scheme='blank')[source]#

A single metadata column containing numeric data.

See the Metadata class docstring for details about Metadata and MetadataColumn objects, including a description of column types and supported data formats.

Attributes

Attributes (inherited)

id_count

Number of metadata IDs.

id_header

Name identifying the IDs associated with the metadata.

ids

IDs associated with the metadata.

missing_scheme

Return the vocabulary used to encode missing values.

name

Metadata column name.

Methods (inherited)

drop_missing_values

Filter out missing values from the metadata column.

filter_ids

Filter metadata column by IDs.

get_ids

Retrieve IDs matching search criteria.

get_missing

Return a series containing only missing values (with an index).

get_value

Retrieve metadata column value associated with an ID.

has_missing_values

Determine if the metadata column has one or more missing values.

read

Create a new NumericMetadataColumn instance from a file.

save

Save a TSV metadata file.

to_dataframe

Create a pandas dataframe from the metadata column.

to_series

Create a pandas series from the metadata column.

write

Write an instance of NumericMetadataColumn to a file.

Special methods (inherited)

__eq__

Determine if this metadata column is equal to another.

__ge__

Return self>=value.

__getstate__

Helper for pickle.

__gt__

Return self>value.

__le__

Return self<=value.

__lt__

Return self<value.

__ne__

Determine if this metadata column is not equal to another.

__str__

Return str(self).

Details

type = 'numeric'#