A DataMap is a DataFrame with a value-to-index mapping allowing fast hash-based access and grouped operations.
- See also
- Since
0.1.0
- Note
- Column operations return a DataMap[K] as a subtype of DataFrame.
- You can drop the group columns but altering or replacing a group column results in an IllegalOperation exception
(for methods which return the type
DataMap[K]). - Note that index changing operations return a DataFrame since the mapping is no longer applicable to the resulting DataFrame.
- Companion
- object
Value members
Concrete methods
Drops the group columns. The mapping of the values in the group columns to the rows is preserved.
Drops the group columns. The mapping of the values in the group columns to the rows is preserved.
- Returns
DataMap without group columns.
- Since
0.1.0
Create groups from the DataMap which allow performing group-wise operations such as aggregation.
Create groups from the DataMap which allow performing group-wise operations such as aggregation.
- Returns
Groups object.
- See also
- Since
0.1.0
Selects a key in the DataMap.
Selects a key in the DataMap.
- Value Params
- k
Key value to match.
- Returns
DataFrame for the selected key. If the key is not found, this DataFrame is empty.
- Since
0.1.0
- Note
- Since only the index is set and the keys are hashed, this method is highly performant.
- Note that the resulting DataFrame can have more than one row.
Sorts the DataFame with respect to the size of the groups staring with the largest group.
Sorts the DataFame with respect to the size of the groups staring with the largest group.
- Returns
DataMap with sorted index.
- Since
0.1.0
- Definition Classes
- Definition Classes
- Definition Classes
- Definition Classes
Inherited methods
Extracts a column and slices the index by intersecting the current index with a boolean Series.
Extracts a column and slices the index by intersecting the current index with a boolean Series.
- Value Params
- col
Column name.
- series
Boolean Series as mask, where only index positions kept that are
true.
- Returns
Series with sliced index.
- Throws
- ColumnNotFoundException
If the column is not found.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Extracts a column and slices the index by intersecting the current index with an array of index positions.
Extracts a column and slices the index by intersecting the current index with an array of index positions.
- Value Params
- array
Array of index positions.
- col
Column name.
- Returns
Series with sliced index.
- Throws
- ColumnNotFoundException
If the column is not found.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Extracts a column and slices the index by intersecting the current index with a sequence of index positions.
Extracts a column and slices the index by intersecting the current index with a sequence of index positions.
- Value Params
- col
Column name.
- seq
Sequence of index positions.
- Returns
Series with sliced index.
- Throws
- ColumnNotFoundException
If the column is not found.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Extracts a column and slices the index by intersecting the current index with a range.
Extracts a column and slices the index by intersecting the current index with a range.
- Value Params
- col
Column name.
- range
Range.
- Returns
Series with sliced index.
- Throws
- ColumnNotFoundException
If the column is not found.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Returns a value for a columns and a row using a default value for undefined entries.
Returns a value for a columns and a row using a default value for undefined entries.
- Value Params
- col
Column name.
- default
Default value for undefined values.
- row
Row.
- Returns
Value. Default value if
rowis None.- Throws
- ColumnNotFoundException
If the column is not found.
- IndexBoundsException
If
rowis not part of the base index.
- See also
- Since
0.1.0
- Note
For an optimal performance in a loop, first extract the column as a Series.
- Inherited from
- DataFrame
Returns a value for a columns and a row using a default value for undefined entries.
Returns a value for a columns and a row using a default value for undefined entries.
- Value Params
- col
Column name.
- default
Default value for undefined values.
- row
Row.
- Returns
Value.
- Throws
- ColumnNotFoundException
If the column is not found.
- IndexBoundsException
If
rowis not part of the base index.
- See also
- Since
0.1.0
- Note
For an optimal performance in a loop, first extract the column as a Series.
- Inherited from
- DataFrame
Returns a value for a columns and a row.
Returns a value for a columns and a row.
- Value Params
- col
Column name.
- row
Row.
- Returns
Value as Option. None if
rowis None.- Throws
- ColumnNotFoundException
If the column is not found.
- IndexBoundsException
If
rowis not part of the base index.
- See also
- Since
0.1.0
- Note
For an optimal performance in a loop, first extract the column as a Series.
- Inherited from
- DataFrame
Returns a value for a columns and a row.
Returns a value for a columns and a row.
- Value Params
- col
Column name.
- row
Row.
- Returns
Value as Option.
- Throws
- ColumnNotFoundException
If the column is not found.
- IndexBoundsException
If
rowis not part of the base index.
- See also
- Since
0.1.0
- Note
For an optimal performance in a loop, first extract the column as a Series.
- Inherited from
- DataFrame
Returns a column as a Series.
Returns a column as a Series.
- Value Params
- col
Column name.
- Returns
Column as a Series with the name of the column.
- Throws
- ColumnNotFoundException
If the column is not found.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Slices the index by intersecting the current index with a boolean Series.
Slices the index by intersecting the current index with a boolean Series.
- Value Params
- series
Boolean Series as mask, where only index positions kept that are
true.
- Returns
Object with sliced index and order of
series.- See also
- Since
0.1.0
- Inherited from
- IndexOps
Slices the index by intersecting it with an array of index positions.
Slices the index by intersecting it with an array of index positions.
- Value Params
- array
Array of index positions.
- Returns
Object with sliced index and order of
array.- See also
- Since
0.1.0
- Inherited from
- IndexOps
Slices the index by intersecting it with a sequence of index positions.
Slices the index by intersecting it with a sequence of index positions.
- Value Params
- seq
Sequence of index positions.
- Returns
Object with sliced index and order of
seq.- See also
- Since
0.1.0
- Inherited from
- IndexOps
Slices the index by intersecting it with a range.
Slices the index by intersecting it with a range.
- Value Params
- range
Range.
- Returns
Object with sliced index with ascending order.
- See also
- Since
0.1.0
- Inherited from
- IndexOps
Determines if an object is a DataFrame.
Determines if an object is a DataFrame.
- Value Params
- a
Any object.
- Returns
True if the object is a DataFrame and false otherwise.
- Since
0.1.0
- Inherited from
- DataFrame
Appends (or replaces) multiple columns.
Appends (or replaces) multiple columns.
- Returns
Appender object which appends Series on the right side.
- Throws
- MergeIndexException
If indices are not compatible.
- See also
- Since
0.1.0
- Note
- Existing columns with the same name are replaced by the rightmost column.
- The index of the Series must be included in the left DataFrame.
- Series might be copied if indices are not equivalent.
- The index of the DataFrame is not altered.
- For one column, this operation is equivalent to the
|operator.
- Example
df.cols("price" -> Series(10.0, 20.0), "quantity" -> Series(5, 2)) df.cols(Series(10.0, 20.0) as "price", Series(5, 2) as "quantity") df.cols(Series("price")(10.0, 20.0), Series("quantity")(5, 2)) df.cols(price = Series(10.0, 20.0), quantity = Series(5, 2))- Inherited from
- DataFrame
All columns as array of Series.
All columns as array of Series.
- Returns
Array with all columns as Series in defined order. All Series have the same index as the DataFrame.
- Since
0.1.0
- Inherited from
- DataFrame
Iterates over all columns.
Iterates over all columns.
- Returns
Iterable over all columns in defined order.
- Since
0.1.0
- Inherited from
- DataFrame
Sequence with column names.
Sequence with column names.
- Returns
Sequence with column names in defined order.
- Since
0.1.0
- Inherited from
- DataFrame
Determines if a column is in the DataFrame.
Determines if a column is in the DataFrame.
- Value Params
- col
Column name.
- Returns
True if DataFrame has the column
coland false otherwise.- Since
0.1.0
- Inherited from
- DataFrame
Prints the DataFrame as a table with an index column and annotated column types.
Prints the DataFrame as a table with an index column and annotated column types.
- Value Params
- colWidth
The width of each column.
- n
The maximal numbers of rows.
- width
The maximal width of a line.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Drops all rows with undefined (null) values with respect to specified columns.
Drops all rows with undefined (null) values with respect to specified columns.
- Value Params
- cols
Columns.
- Returns
DataFrame restricted to rows without undefined values in columns
cols.- Throws
- ColumnNotFoundException
If one of the columns
colsdoes not exist.
- Since
0.1.0
- Inherited from
- DataFrame
Drops all rows with undefined (null) values.
Drops all rows with undefined (null) values.
- Returns
DataFrame restricted to rows without undefined values in all columns.
- Since
0.1.0
- Inherited from
- DataFrame
Determines if the object is a DataFrame and is equivalent. Equivalence implies:
Determines if the object is a DataFrame and is equivalent. Equivalence implies:
- The same index. The indices are equal if they have the same elements, the same order and the same base index.
- The column names are the same (but may have different order).
- The values in all columns are equal.
Returns a value for a columns and a row.
Returns a value for a columns and a row.
- Value Params
- col
Column name.
- row
Row.
- Returns
Value.
- Throws
- ColumnNotFoundException
If the column is not found.
- NoSuchElementException
If the value is undefined,
rowis not in the index orrowis None.
- See also
- Since
0.1.0
- Note
For an optimal performance in a loop, first extract the column as a Series.
- Inherited from
- DataFrame
Returns a value for a columns and a row.
Returns a value for a columns and a row.
- Value Params
- col
Column name.
- row
Row.
- Returns
Value.
- Throws
- ColumnNotFoundException
If the column is not found.
- NoSuchElementException
If the value is undefined or
rowis not in the index.
- See also
- Since
0.1.0
- Note
For an optimal performance in a loop, first extract the column as a Series.
- Inherited from
- DataFrame
Groups the DataFrame by a sequence of columns (of arbitrary length).
Groups the DataFrame by a sequence of columns (of arbitrary length).
- Value Params
- cols
Sequence with column names.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by columns.
Groups the DataFrame by columns.
- Value Params
- col1
Column name.
- col2
Column name.
- col3
Column name.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by columns.
Groups the DataFrame by columns.
- Value Params
- col1
Column name.
- col2
Column name.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by a column.
Groups the DataFrame by a column.
- Value Params
- col
Column name.
- Returns
Groups.
- Throws
- ColumnNotFoundException
If the a column does not exist.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by typed columns.
Groups the DataFrame by typed columns.
- Value Params
- col1
Column name.
- col2
Column name.
- col3
Column name.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by typed columns.
Groups the DataFrame by typed columns.
- Value Params
- col1
Column name.
- col2
Column name.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by a typed column.
Groups the DataFrame by a typed column.
- Value Params
- col
Column name.
- Returns
Groups.
- Throws
- ColumnNotFoundException
If the a column does not exist.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by typed columns including undefined values.
Groups the DataFrame by typed columns including undefined values.
- Value Params
- col1
Column name.
- col2
Column name.
- col3
Column name.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by typed columns including undefined values.
Groups the DataFrame by typed columns including undefined values.
- Value Params
- col1
Column name.
- col2
Column name.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by a typed column including undefined values.
Groups the DataFrame by a typed column including undefined values.
- Value Params
- col
Column name.
- Returns
Groups.
- Throws
- ColumnNotFoundException
If the a column does not exist.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by a sequence of columns (of arbitrary length) including undefined values.
Groups the DataFrame by a sequence of columns (of arbitrary length) including undefined values.
- Value Params
- cols
Sequence with column names.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by columns including undefined values.
Groups the DataFrame by columns including undefined values.
- Value Params
- col1
Column name.
- col2
Column name.
- col3
Column name.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by columns including undefined values.
Groups the DataFrame by columns including undefined values.
- Value Params
- col1
Column name.
- col2
Column name.
- Returns
Groups.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by a column including undefined values.
Groups the DataFrame by a column including undefined values.
- Value Params
- col
Column name.
- Returns
Groups.
- Throws
- ColumnNotFoundException
If the a column does not exist.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Head of object.
Head of object.
- Value Params
- n
Number of rows.
- Returns
First n rows in index.
- See also
- Since
0.1.0
- Inherited from
- IndexOps
Indexes the DataFrame by a sequence of columns (of arbitrary length).
Indexes the DataFrame by a sequence of columns (of arbitrary length).
- Value Params
- cols
Sequence with column names.
- Returns
DataMap.
- Throws
- IllegalOperation
If sequence of columns is empty.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Indexes the DataFrame by (typed) columns.
Indexes the DataFrame by (typed) columns.
- Value Params
- col1
Column name.
- col2
Column name.
- col3
Column name.
- Returns
DataMap.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Indexes the DataFrame by (typed) columns.
Indexes the DataFrame by (typed) columns.
- Value Params
- col1
Column name.
- col2
Column name.
- Returns
DataMap.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Indexes the DataFrame by a (typed) column.
Indexes the DataFrame by a (typed) column.
- Value Params
- col
Column name.
- Returns
DataMap.
- Throws
- ColumnNotFoundException
If the a column does not exist.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping values are ignored. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Indexes the DataFrame by (typed) columns including undefined values.
Indexes the DataFrame by (typed) columns including undefined values.
- Value Params
- col1
Column name.
- col2
Column name.
- col3
Column name.
- Returns
DataMap with Option keys.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Indexes the DataFrame by (typed) columns including undefined values.
Indexes the DataFrame by (typed) columns including undefined values.
- Value Params
- col1
Column name.
- col2
Column name.
- Returns
DataMap with Option keys.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Groups the DataFrame by a (typed) column including undefined values.
Groups the DataFrame by a (typed) column including undefined values.
- Value Params
- col
Column name.
- Returns
DataMap with Option keys.
- Throws
- ColumnNotFoundException
If the a column does not exist.
- See also
- Since
0.1.0
- Note
Undefined (null) grouping are assembled in one group. Each Double.NaN value represents an individual group.
- Inherited from
- DataFrame
Iterator over the index.
Iterator over the index.
- Returns
Iterator over the index in the current order.
- Since
0.1.0
- Inherited from
- DataFrame
Information string describing the DataFrame.
Information string describing the DataFrame.
- Returns
Info string.
- Since
0.1.0
- Inherited from
- DataFrame
Adapter to write the DataFrame to a specific output. Use e.g.
Adapter to write the DataFrame to a specific output. Use e.g.
import pd.io.parquet.implicits
to import the respective format and read a DataFrame via
df.io.parquet.write(...)
import pd.io.parquet.implicits }}} respective format and read a DataFrame via
df.io.parquet.write(...)
- Returns
WriteAdapter.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Performs an inner join equivalent to a SQL inner join with respect to the specified key columns.
Performs an inner join equivalent to a SQL inner join with respect to the specified key columns.
- Value Params
- cols
Key columns to be joined.
- df
DataFrame to be joined.
- Returns
The joined DataFrame.
- Throws
- IllegalOperation
If not at least one key column is specified.
- See also
- Since
0.1.0
- Note
- Columns in
dfare dropped that are not key columns but appear also in the original DataFrame. To keep these columns in the results, the columns must be renamed first. - The comparison of two undefined values (null) is false and does not satisfy a join condition.
- Columns in
- Inherited from
- DataFrame
Performs a left join equivalent to a SQL outer left join with respect to the specified key columns.
Performs a left join equivalent to a SQL outer left join with respect to the specified key columns.
- Value Params
- cols
Key columns to be joined.
- df
DataFrame to be joined.
- Returns
The joined DataFrame.
- Throws
- IllegalOperation
If not at least one key column is specified.
- See also
- Since
0.1.0
- Note
- Columns in
dfare dropped that are not key columns but appear also in the original DataFrame. To keep these columns in the results, the columns must be renamed first. - The comparison of two undefined values (null) is false and does not satisfy a join condition.
- Columns in
- Inherited from
- DataFrame
Performs an outer join equivalent to a SQL full outer join with respect to the specified key columns.
Performs an outer join equivalent to a SQL full outer join with respect to the specified key columns.
- Value Params
- cols
Key columns to be joined.
- df
DataFrame to be joined.
- Returns
The joined DataFrame.
- Throws
- IllegalOperation
If not at least one key column is specified.
- See also
- Since
0.1.0
- Note
- Columns in
dfare dropped that are not key columns but appear also in the original DataFrame. To keep these columns in the results, the columns must be renamed first. - The comparison of two undefined values (null) is false and does not satisfy a join condition.
- Columns in
- Inherited from
- DataFrame
Performs a right join equivalent to a SQL outer right join with respect to the specified key columns.
Performs a right join equivalent to a SQL outer right join with respect to the specified key columns.
- Value Params
- cols
Key columns to be joined.
- df
DataFrame to be joined.
- Returns
The joined DataFrame.
- Throws
- IllegalOperation
If not at least one key column is specified.
- See also
- Since
0.1.0
- Note
- Columns in
dfare dropped that are not key columns but appear also in the original DataFrame. To keep these columns in the results, the columns must be renamed first. - The comparison of two undefined values (null) is false and does not satisfy a join condition.
- Columns in
- Inherited from
- DataFrame
Merges a Series into a DataFrame by index.
Merges a Series into a DataFrame by index.
- Value Params
- series
Series to concatenate.
- Returns
DataFrame with all columns of
dfconcatenated on the right side.- Since
0.1.0
- Note
- Columns with the same name are replaced by the rightmost column.
- The order of index positions is only preserved if all indices are equal.
- Use the
joinmethods if you intend to join via column values.
- Inherited from
- DataFrame
Merges two DataFrame by index.
Merges two DataFrame by index.
- Value Params
- df
DataFrame to merge.
- Returns
DataFrame with all columns of
dfconcatenated on the right side.- Since
0.1.0
- Note
- Columns with the same name are replaced by the rightmost column.
- The order of index positions is only preserved if the indices are equal.
- Use the
joinmethods if you intend to join via column values.
- Inherited from
- DataFrame
Number of rows.
Number of rows.
- Returns
Length of the Series, i.e. number of elements in the index.
- Since
0.1.0
- Inherited from
- DataFrame
Number of rows of the underlying data vectors.
Number of rows of the underlying data vectors.
- Returns
Number of elements in the base index.
- Since
0.1.0
- Inherited from
- DataFrame
Requirement object which is used to throw exceptions if conditions are not met.
Requirement object which is used to throw exceptions if conditions are not met.
- Returns
Requirement object.
- Since
0.1.0
- Inherited from
- DataFrame
Resets the index to a UniformIndex with index positions 0 to numRows - 1 while keeping the order of the
elements. If the current index is not a uniform index, the columns are copied into new vectors with the order of
the current index.
Resets the index to a UniformIndex with index positions 0 to numRows - 1 while keeping the order of the
elements. If the current index is not a uniform index, the columns are copied into new vectors with the order of
the current index.
Extracts DataFrame with selected columns.
Extracts DataFrame with selected columns.
- Value Params
- cols
Column names.
- Returns
DataFrame with selected column.
- Throws
- ColumnNotFoundException
If a column is not found.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Extracts DataFrame with selected columns.
Extracts DataFrame with selected columns.
- Value Params
- cols
Column names.
- Returns
DataFrame with selected column.
- Throws
- ColumnNotFoundException
If a column is not found.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Extracts DataFrame with selected columns.
Extracts DataFrame with selected columns.
- Value Params
- cols
Column names.
- Returns
DataFrame with selected column.
- Throws
- ColumnNotFoundException
If a column is not found.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Selects a column via dot notation.
Selects a column via dot notation.
- Value Params
- col
Column name.
- Returns
Column as a Series with the name of the column.
- Throws
- ColumnNotFoundException
If the column is not found.
- See also
- Since
0.1.0
- Example
df.myColumn- Inherited from
- DataFrame
Prints the DataFrame as a table.
Prints the DataFrame as a table.
- Value Params
- annotateIndex
If true, the an index column is displayed.
- annotateType
If true, the type for each column in displayed.
- colWidth
The width of each column.
- n
The maximal numbers of rows.
- width
The maximal width of a line.
- See also
- Since
0.1.0
- Inherited from
- DataFrame
Sorts the index (ascending).
Sorts the index (ascending).
- Returns
Object with sorted index.
- See also
- Since
0.1.0
- Inherited from
- IndexOps
Tail of object.
Tail of object.
- Value Params
- n
Number of rows.
- Returns
Last n rows in index.
- See also
- Since
0.1.0
- Inherited from
- IndexOps
Copies a column into an array.
Copies a column into an array.
Copies a column into an array.
Copies a column into an array.
- Value Params
- col
Column name.
- Returns
Array of type
T.- See also
- Since
0.1.0
- Inherited from
- DataFrame
Copies a column into a List.
Copies a column into a List.
- Value Params
- col
Column name.
- Returns
List of type
T.- See also
- Since
0.1.0
- Inherited from
- DataFrame
Copies a column into a sequence.
Copies a column into a sequence.
- Value Params
- col
Column name.
- Returns
Sequence of type
T.- See also
- Since
0.1.0
- Inherited from
- DataFrame
Copies a column into a List.
Copies a column into a List.
Copies a column into a sequence.
Copies a column into a sequence.
Renders the DataFrame as a table.
Renders the DataFrame as a table.
- Value Params
- annotateIndex
If true, the an index column is displayed.
- annotateType
If true, the type for each column in displayed.
- colWidth
The width of each column.
- indexWidth
The width of the index colum.
- n
The maximal numbers of rows.
- width
The maximal width of a line.
- Returns
Formatted table.
- Since
0.1.0
- Inherited from
- DataFrame
Appends row-wise one or multiple DataFrame objects. The method materializes all indices into a uniform index.
Appends row-wise one or multiple DataFrame objects. The method materializes all indices into a uniform index.
- Value Params
- df
DataFrame object to be appended.
- Returns
DataFrame with exactly the same columns.
- Throws
- ColumnNotFoundException
If the DataFrame objects to be appended don't have the same columns.
- SeriesCastException
If the underlying types of the columns do not match.
- Since
0.1.0
- Inherited from
- DataFrame
Counts the number of rows for unique value pairs in key columns.
Counts the number of rows for unique value pairs in key columns.
- Value Params
- asFraction
If true, it returns the total fraction as Double for an unique key value relative to the total number of rows (including undefined values). Otherwise the number of rows is returned as Int column.
- cols
Key columns.
- countCol
Name of the resulting column.
- dropUndefined
If true, drops rows with undefined values in a key column (the default includes undefined values).
- order
Order of the
countColcolumn.
- Returns
DataFrame with the key columns and the
countColcolumn.- Since
0.1.0
- Inherited from
- DataFrame
Counts the number of rows for unique value pairs in key columns (including undefined key values).
Counts the number of rows for unique value pairs in key columns (including undefined key values).
- Value Params
- cols
Key columns.
- Returns
DataFrame with the key columns and a "count" column.
- Since
0.1.0
- Inherited from
- DataFrame