Package | Description |
---|---|
tech.tablesaw.aggregate | |
tech.tablesaw.api | |
tech.tablesaw.columns.strings | |
tech.tablesaw.table |
Modifier and Type | Method | Description |
---|---|---|
Table |
Summarizer.by(CategoricalColumn<?>... columns) |
Similar in intent to the SQL "group by" statement, it produces a table with one row for each
subgroup of the output data containing the result of applying the summary functions to the
subgroup
|
static Table |
CrossTab.columnPercents(Table table,
CategoricalColumn<?> column1,
CategoricalColumn<?> column2) |
Returns a table containing the column percents made from a source table, after first
calculating the counts cross-tabulated from the given columns
|
static Table |
CrossTab.counts(Table table,
CategoricalColumn<?> column1,
CategoricalColumn<?> column2) |
Returns a table containing two-dimensional cross-tabulated counts for each combination of
values in
column1 and column2 |
Summarizer |
Summarizer.groupBy(CategoricalColumn<?>... columns) |
TODO: research how the groupBy() methods differ from the by() methods? Are they synonyms?
|
static Table |
PivotTable.pivot(Table table,
CategoricalColumn<?> column1,
CategoricalColumn<?> column2,
NumericColumn<?> values,
AggregateFunction<?,?> aggregateFunction) |
Returns a table that is a rotation of the given table pivoted around the key columns, and
filling the output cells using the values calculated by the
aggregateFunction when
applied to the values column grouping by the key columns |
static Table |
CrossTab.rowPercents(Table table,
CategoricalColumn<?> column1,
CategoricalColumn<?> column2) |
Returns a table containing the row percents made from a source table, after first calculating
the counts cross-tabulated from the given columns
|
static Table |
CrossTab.tablePercents(Table table,
CategoricalColumn<?> column1,
CategoricalColumn<?> column2) |
Returns a table containing the table percents made from a source table, after first calculating
the counts cross-tabulated from the given columns
|
Modifier and Type | Class | Description |
---|---|---|
class |
BooleanColumn |
A column in a base table that contains float values
|
class |
DateColumn |
A column in a base table that contains float values
|
class |
DateTimeColumn |
A column in a table that contains long-integer encoded (packed) local date-time values
|
class |
InstantColumn |
A column in a table that contains long-integer encoded (packed) instant values.
|
class |
IntColumn |
|
class |
LongColumn |
|
class |
ShortColumn |
|
class |
StringColumn |
A column that contains String values.
|
class |
TextColumn |
A column that contains String values.
|
class |
TimeColumn |
A column that contains local time values
|
Modifier and Type | Method | Description |
---|---|---|
List<CategoricalColumn<?>> |
Table.categoricalColumns(String... columnNames) |
Returns only the columns whose names are given in the input array
|
Modifier and Type | Method | Description |
---|---|---|
Table |
Table.countBy(CategoricalColumn<?>... groupingColumns) |
Returns a table containing two columns, the grouping column, and a column named "Count" that
contains the counts for each grouping column value
|
Table |
Table.pivot(CategoricalColumn<?> column1,
CategoricalColumn<?> column2,
NumericColumn<?> column3,
AggregateFunction<?,?> aggregateFunction) |
Returns a pivot on this table, where: The first column contains unique values from the index
column1 There are n additional columns, one for each unique value in column2 The values in each
of the cells in these new columns are the result of applying the given AggregateFunction to the
data in column3, grouped by the values of column1 and column2
|
TableSliceGroup |
Table.splitOn(CategoricalColumn<?>... columns) |
Returns a non-overlapping and exhaustive collection of "slices" over this table.
|
Table[] |
Table.stratifiedSampleSplit(CategoricalColumn<?> column,
double table1Proportion) |
Splits the table into two stratified samples, this uses the specified column to divide the
table into groups, randomly assigning records to each according to the proportion given in
trainingProportion.
|
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractStringColumn<C extends AbstractColumn<C,String>> |
Abstract super class for Text like columns.
|
Modifier and Type | Method | Description |
---|---|---|
CategoricalColumn<?> |
Relation.categoricalColumn(int columnNumber) |
Returns the CategoricalColumn at the given 0-based index if present.
|
CategoricalColumn<?> |
Relation.categoricalColumn(String columnName) |
Returns a CategoricalColumn with the given name if it is present in this Relation.
|
Modifier and Type | Method | Description |
---|---|---|
List<CategoricalColumn<?>> |
Relation.categoricalColumns(String... columnName) |
Returns the columns whose names are given in the input array
|
Modifier and Type | Method | Description |
---|---|---|
static StandardTableSliceGroup |
StandardTableSliceGroup.create(Table original,
CategoricalColumn<?>... columns) |
Returns a viewGroup splitting the original table on the given columns.
|
Copyright © 2021. All rights reserved.