| Package | Description |
|---|---|
| tech.bitey.dataframe |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DateSeries
A time series specialization of
DataFrame. |
| Modifier and Type | Class and Description |
|---|---|
class |
DateSeriesImpl |
| Modifier and Type | Method and Description |
|---|---|
DataFrame |
DataFrame.append(DataFrame df)
Appends the specified dataframe to this one by calling
Column.append(Column) on each pair of columns, and keeping the
meta-data from this dataframe. |
DataFrame |
DataFrame.append(DataFrame df,
boolean coerce)
Appends the specified dataframe to this one by calling
Column.append(Column,boolean) on each pair of columns, and keeping
the meta-data from this dataframe. |
DataFrame |
DataFrame.copy()
Returns a deep copy of this dataframe.
|
static DataFrame |
DataFrameFactory.create(Column<?>[] columns,
String[] columnNames)
|
static DataFrame |
DataFrameFactory.create(Column<?>[] columns,
String[] columnNames,
String keyColumnName)
|
static DataFrame |
DataFrameFactory.create(LinkedHashMap<String,Column<?>> columnMap)
|
static DataFrame |
DataFrameFactory.create(LinkedHashMap<String,Column<?>> columnMap,
String keyColumnName)
|
static DataFrame |
DataFrameFactory.create(List<Column<?>> columns,
List<String> columnNames)
|
static DataFrame |
DataFrameFactory.create(List<Column<?>> columns,
List<String> columnNames,
String keyColumnName)
|
DataFrame |
DataFrame.dropColumns(Collection<String> columnNames)
Returns a new dataframe which excludes the specified columns.
|
DataFrame |
DataFrame.dropColumns(int... columnIndices)
Returns a new dataframe which excludes the specified columns.
|
DataFrame |
DataFrame.dropColumns(String... columnNames)
Returns a new dataframe which excludes the specified columns.
|
default DataFrame |
DataFrame.empty()
Returns an empty dataframe.
|
DataFrame |
DataFrame.filter(Predicate<Row> criteria)
Returns a dataframe containing the rows which pass the specified
Predicate. |
DataFrame |
DataFrame.filterNulls()
Returns a dataframe containing the rows which do not contain any null values.
|
default DataFrame |
DataFrame.head()
Returns a dataframe containing the first 10 rows from this dataframe, or this
dataframe if it contains fewer than 10 rows.
|
DataFrame |
DataFrame.head(int count)
Returns a dataframe containing the first
count rows from this
dataframe, or this dataframe if it contains fewer than count rows. |
DataFrame |
DataFrame.headTo(Object toKey)
Returns a dataframe containing the rows whose key column values are strictly
less than
toKey. |
DataFrame |
DataFrame.indexOrganize(int columnIndex)
Returns a new dataframe with rows sorted by the specified column.
|
DataFrame |
DataFrame.indexOrganize(String columnName)
Returns a new dataframe with rows sorted by the specified column.
|
DataFrame |
DataFrame.join(DataFrame df)
Perform a one-to-one inner join on this (left) dataframe with the specified
(right) dataframe by their key columns.
|
DataFrame |
DataFrame.join(DataFrame df,
String[] leftColumnNames,
String[] rightColumnNames)
Perform a one-to-many inner join on this (left) dataframe with the specified
(right) dataframe by building a hashtable index on the specified left
columns.
|
DataFrame |
DataFrame.joinLeftOneToMany(DataFrame df,
String rightColumnName)
Perform a one-to-many left join on this (left) dataframe with the specified
(right) dataframe using the key column from the left dataframe.
|
DataFrame |
DataFrame.joinManyToOne(DataFrame df,
String leftColumnName)
Perform a many-to-one inner join on this (left) dataframe with the specified
(right) dataframe using the key column from the right dataframe.
|
DataFrame |
DataFrame.joinOneToMany(DataFrame df,
String rightColumnName)
Perform a one-to-many inner join on this (left) dataframe with the specified
(right) dataframe using the key column from the left dataframe.
|
static DataFrame |
DataFrameFactory.readCsvFrom(File file,
ReadCsvConfig config)
Read a dataframe from a CSV file.
|
static DataFrame |
DataFrameFactory.readCsvFrom(InputStream is,
ReadCsvConfig config)
Read a dataframe in CSV format from the specified
InputStream. |
static DataFrame |
DataFrameFactory.readFrom(File file)
Load a dataframe from a file created via
writeTo(File). |
static DataFrame |
DataFrameFactory.readFrom(ReadableByteChannel channel)
Read a dataframe from the specified
ReadableByteChannel. |
static DataFrame |
DataFrameFactory.readFrom(ResultSet rs,
ReadFromDbConfig config)
Read a dataframe from the specified
ResultSet according to the
specified configuration. |
DataFrame |
DataFrame.sampleN(int sampleSize)
Returns a dataframe containing
sampleSize rows selected at random. |
DataFrame |
DataFrame.sampleX(double proportion)
Returns a dataframe containing
size()*proportion rows selected at
random. |
DataFrame |
DataFrame.selectColumns(int... columnIndices)
Returns a new dataframe which contains only the specified columns, in the
specified order.
|
DataFrame |
DataFrame.selectColumns(List<String> columnNames)
Returns a new dataframe which contains only the specified columns, in the
specified order.
|
DataFrame |
DataFrame.selectColumns(String... columnNames)
Returns a new dataframe which contains only the specified columns, in the
specified order.
|
DataFrame |
DataFrame.subFrame(int fromIndex,
int toIndex)
Returns a dataframe containing the rows between the specified
fromIndex, inclusive, and toIndex, exclusive (if
fromIndex and toIndex are equal, the returned dataframe is
empty).
|
DataFrame |
DataFrame.subFrameByValue(Object fromKey,
boolean fromInclusive,
Object toKey,
boolean toInclusive)
Returns a dataframe containing the rows whose key column values are between
fromKey and toKey. |
default DataFrame |
DataFrame.subFrameByValue(Object fromKey,
Object toKey)
Returns a dataframe containing the rows whose key column values are greater
than or equal to
fromKey and strictly less than toKey. |
default DataFrame |
DataFrame.tail()
Returns a dataframe containing the last 10 rows from this dataframe, or this
dataframe if it contains fewer than 10 rows.
|
DataFrame |
DataFrame.tail(int count)
Returns a dataframe containing the last
count rows from this
dataframe, or this dataframe if it contains fewer than count rows. |
DataFrame |
DataFrame.tailFrom(Object fromKey)
Returns a dataframe containing the rows whose key column values are greater
than or equal to
fromKey. |
DataFrame |
DataFrame.withColumn(String columnName,
Column<?> column)
Returns a new dataframe which is a shallow copy of this one, but including
the specified column and column name.
|
DataFrame |
DataFrame.withColumns(DataFrame df)
Returns a new dataframe which is a shallow copy of this one, but including
the columns and column names from the provided dataframe.
|
DataFrame |
DataFrame.withColumns(LinkedHashMap<String,Column<?>> columns)
Returns a new dataframe which is a shallow copy of this one, but including
the specified columns and column names.
|
DataFrame |
DataFrame.withColumns(String[] columnNames,
Column<?>[] columns)
Returns a new dataframe which is a shallow copy of this one, but including
the specified columns and column names.
|
DataFrame |
DataFrame.withKeyColumn(int columnIndex)
Returns a new dataframe which is a shallow copy of this one, but with the key
column set to the specified column.
|
DataFrame |
DataFrame.withKeyColumn(String columnName)
Returns a new dataframe which is a shallow copy of this one, but with the key
column set to the specified column.
|
| Modifier and Type | Method and Description |
|---|---|
DataFrame |
DataFrame.append(DataFrame df)
Appends the specified dataframe to this one by calling
Column.append(Column) on each pair of columns, and keeping the
meta-data from this dataframe. |
DataFrame |
DataFrame.append(DataFrame df,
boolean coerce)
Appends the specified dataframe to this one by calling
Column.append(Column,boolean) on each pair of columns, and keeping
the meta-data from this dataframe. |
boolean |
DataFrame.equals(DataFrame df,
boolean dataOnly)
Tests this DataFrame against the specified one for equality.
|
DataFrame |
DataFrame.join(DataFrame df)
Perform a one-to-one inner join on this (left) dataframe with the specified
(right) dataframe by their key columns.
|
DataFrame |
DataFrame.join(DataFrame df,
String[] leftColumnNames,
String[] rightColumnNames)
Perform a one-to-many inner join on this (left) dataframe with the specified
(right) dataframe by building a hashtable index on the specified left
columns.
|
DataFrame |
DataFrame.joinLeftOneToMany(DataFrame df,
String rightColumnName)
Perform a one-to-many left join on this (left) dataframe with the specified
(right) dataframe using the key column from the left dataframe.
|
DataFrame |
DataFrame.joinManyToOne(DataFrame df,
String leftColumnName)
Perform a many-to-one inner join on this (left) dataframe with the specified
(right) dataframe using the key column from the right dataframe.
|
DataFrame |
DataFrame.joinOneToMany(DataFrame df,
String rightColumnName)
Perform a one-to-many inner join on this (left) dataframe with the specified
(right) dataframe using the key column from the left dataframe.
|
DataFrame |
DataFrame.withColumns(DataFrame df)
Returns a new dataframe which is a shallow copy of this one, but including
the columns and column names from the provided dataframe.
|
Copyright © 2020. All rights reserved.