brk-code

agate の API リファレンス

agate (wireservice/agate) の公開 API 69 件 —— クラス 49、関数 4、メソッド 16。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。

リポジトリ: wireservice/agate

種別件数
クラス49
関数4
メソッド16

API 一覧

classagate.aggregations.all.All
Check if all values in a column pass a test.
methodagate.aggregations.all.All.run(table)
:returns: :class:`bool`
classagate.aggregations.any.Any
Check if any value in a column passes a test.
classagate.aggregations.base.Aggregation
Aggregations create a new value by summarizing a :class:`.Column`.
classagate.aggregations.count.Count
Count occurences of a value or values.
classagate.aggregations.deciles.Deciles
Calculate the deciles of a column based on its percentiles.
classagate.aggregations.first.First
Returns the first value that passes a test.
classagate.aggregations.has_nulls.HasNulls
Check if the column contains null values.
classagate.aggregations.iqr.IQR
Calculate the interquartile range of a column.
classagate.aggregations.max.Max
Find the maximum value in a column.
classagate.aggregations.max_length.MaxLength
Find the length of the longest string in a column.
methodagate.aggregations.max_length.MaxLength.run(table)
:returns: :class:`int`.
classagate.aggregations.mean.Mean
Calculate the mean of a column.
classagate.aggregations.median.Median
Calculate the median of a column.
classagate.aggregations.min.Min
Find the minimum value in a column.
classagate.aggregations.mode.Mode
Calculate the mode of a column.
classagate.aggregations.quartiles.Quartiles
Calculate the quartiles of column based on its percentiles.
classagate.aggregations.stdev.StDev
Calculate the sample standard of deviation of a column.
classagate.aggregations.sum.Sum
Calculate the sum of a column.
classagate.aggregations.summary.Summary
Apply an arbitrary function to a column.
classagate.aggregations.variance.PopulationVariance
Calculate the population variance of a column.
classagate.aggregations.variance.Variance
Calculate the sample variance of a column.
classagate.columns.Column
Proxy access to column data.
methodagate.columns.Column.data_type()
This column's data type.
methodagate.columns.Column.index()
This column's index.
methodagate.columns.Column.name()
This column's name.
methodagate.columns.Column.values()
Get the values in this column, as a tuple.
methodagate.columns.Column.values_sorted()
Get the values in this column sorted.
funcagate.columns.null_handler(k)
Key method for sorting nulls correctly.
classagate.computations.change.Change
Calculate the difference between two columns.
classagate.computations.formula.Formula
Apply an arbitrary function to each row.
classagate.computations.percent.Percent
Calculate each values percentage of a total.
methodagate.computations.percent.Percent.run(table)
:returns: :class:`decimal.Decimal`
classagate.computations.percent_change.PercentChange
Calculate the percent difference between two columns.
classagate.computations.percentile_rank.PercentileRank
Calculate the percentile into which each value falls.
methodagate.computations.percentile_rank.PercentileRank.run(table)
:returns: :class:`int`
classagate.computations.rank.Rank
Calculate rank order of the values in a column.
methodagate.computations.rank.Rank.run(table)
:returns: :class:`int`
classagate.computations.slug.Slug
Convert text values from one or more columns into slugs.
methodagate.computations.slug.Slug.run(table)
:returns: :class:`string`
classagate.csv_py3.DictReader
A wrapper around Python 3's builtin :class:`csv.DictReader`.
classagate.csv_py3.DictWriter
A wrapper around Python 3's builtin :class:`csv.DictWriter`.
classagate.csv_py3.Reader
A wrapper around Python 3's builtin :func:`csv.reader`.
classagate.csv_py3.Sniffer
A functional wrapper of ``csv.Sniffer()``.
classagate.csv_py3.Writer
A wrapper around Python 3's builtin :func:`csv.writer`.
classagate.data_types.base.DataType
Specifies how values should be parsed when creating a :class:`.Table`.
classagate.data_types.boolean.Boolean
Data representing true and false.
methodagate.data_types.boolean.Boolean.cast(d)
Cast a single value to :class:`bool`.
classagate.data_types.date.Date
Data representing dates alone.
classagate.data_types.date_time.DateTime
Data representing dates with times.
classagate.data_types.number.Number
Data representing numbers.
classagate.data_types.text.Text
Data representing text.
classagate.exceptions.CastError
A column value can not be cast to the correct type.
classagate.exceptions.DataTypeError
A calculation was attempted with an invalid :class:`.DataType`.
classagate.exceptions.FieldSizeLimitError
A field in a CSV file exceeds the maximum length.
classagate.exceptions.UnsupportedAggregationError
An :class:`.Aggregation` was attempted which is not supported.
classagate.fixed.Reader
Reads a fixed-width file using a column schema in CSV format.
classagate.rows.Row
A row of data.
classagate.table.Table
A dataset consisting of rows and columns.
methodagate.table.Table.column_names()
An tuple of strings.
methodagate.table.Table.column_types()
An tuple :class:`.DataType` instances.
methodagate.table.Table.print_csv(**kwargs)
Print this table as a CSV.
methodagate.table.Table.print_json(**kwargs)
Print this table as JSON.
funcagate.table.find.find(self, test)
Find the first row that passes a test.
funcagate.table.order_by.order_by(self, key, reverse=False)
Create a new table that is sorted.
funcagate.table.to_csv.to_csv(self, path, **kwargs)
Write this table to a CSV.
classagate.tableset.TableSet
An group of named tables with identical column definitions.
classagate.testcase.AgateTestCase
Unittest case for quickly asserting logic about tables.
classagate.utils.NullOrder
Dummy object used for sorting in place of None.

この情報について

掲載しているシグネチャは wireservice/agate の公開ソースコードを Python の ast モジュールで静的解析し、引数名・デフォルト値・ 型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。 詳しくは仕組みの解説をご覧ください。

収録ライブラリ一覧(全 805 件)へ戻る