NumberRowsOp¶
- class NumberRowsOp(parameters)[source]
Implementation in progress.
Methods
|
Constructor for the BaseOp class. |
|
Add numbers events dataframe. |
|
Additional validation required of operation parameters not performed by JSON schema validator. |
Attributes
- NumberRowsOp.__init__(parameters)[source]¶
Constructor for the BaseOp class. Should be extended by operations.
- Parameters:
parameters (dict) – A dictionary specifying the appropriate parameters for the operation.
- NumberRowsOp.do_op(dispatcher, df, name, sidecar=None)[source]¶
Add numbers events dataframe.
- Parameters:
dispatcher (Dispatcher) – Manages operation I/O.
df (DataFrame) –
The DataFrame to be remodeled.
name (str) –
Unique identifier for the dataframe – often the original file path.
sidecar (Sidecar or file-like) – Only needed for HED operations.
- Returns:
Dataframe - a new dataframe after processing.
- static NumberRowsOp.validate_input_data(parameters)[source]¶
Additional validation required of operation parameters not performed by JSON schema validator.
- NumberRowsOp.NAME = 'number_rows'¶
- NumberRowsOp.PARAMS = {'additionalProperties': False, 'properties': {'match_value': {'additionalProperties': False, 'properties': {'column': {'type': 'string'}, 'value': {'type': ['string', 'number']}}, 'required': ['column', 'value'], 'type': 'object'}, 'number_column_name': {'type': 'string'}, 'overwrite': {'type': 'boolean'}}, 'required': ['number_column_name'], 'type': 'object'}¶