rail.interactive.tools.table_tools module
- rail.interactive.tools.table_tools.column_mapper(**kwargs)
Utility stage that remaps the names of columns.
This operates on pandas dataframs in parquet files.
2. In short, this does: output_data = input_data.rename(columns=self.config.columns, in_place=self.config.in_place)
—
Return a table with the columns names changed
—
This function was generated from the function rail.tools.table_tools.ColumnMapper.__call__
- Parameters:
data (TableLike, required) – The data to be renamed
columns (dict, required) – Map of columns to rename
in_place (bool, optional) – Update file in place Default: False
- Returns:
The degraded sample
- Return type:
pandas.core.frame.DataFrame
- rail.interactive.tools.table_tools.row_selector(**kwargs)
Utility Stage that sub-selects rows from a table by index
This operates on pandas dataframs in parquet files.
2. In short, this does: output_data = input_data[self.config.start_row:self.config.stop_row]
—
Return a table with the columns names changed
—
This function was generated from the function rail.tools.table_tools.RowSelector.__call__
- Parameters:
data (TableLike, required) – The data to be renamed
start_row (int, required) – starting row number
stop_row (int, required) – Stoppig row number
- Returns:
The degraded sample
- Return type:
pandas.core.frame.DataFrame
- rail.interactive.tools.table_tools.table_converter(**kwargs)
Utility stage that converts tables from one format to anothe
FIXME, this is hardwired to convert parquet tables to Hdf5Tables. It would be nice to have more options here.
—
Return a converted table
—
This function was generated from the function rail.tools.table_tools.TableConverter.__call__
- Parameters:
data (TableLike, required) – The data to be converted
output_format (str, required) – Format of output table
- Returns:
The converted version of the table
- Return type:
dict