agate.columns

class agate.columns.Column(table, index)

Proxy access to column data. Instances of Column should not be constructed directly. They are created by Table instances.

Parameters:
  • table – The table that contains this column.
  • index – The index of this column in the table.
index

This column’s index in its parent table.

name

This column’s name in its parent table.

data_type

This column’s data type.

get_data()

Get the data contained in this column as a tuple.

get_data_without_nulls()

Get the data contained in this column with any null values removed.

get_data_sorted()

Get the data contained in this column sorted.

aggregate(aggregation)

Apply a Aggregation to this column and return the result. If the aggregation defines a

class agate.columns.ColumnMapping(table)

Proxy access to Column instances for Table.

Parameters:tableTable.
class agate.columns.ColumnIterator(table)

Iterator over Column instances within a Table.

Parameters:tableTable.