PipelineIO

define an input or output of a pipeline step.

Attributes

NameTypeDescription
dataframestrname of the dataframe to connect input and output, used in context.dafaframes
mappingdictmapping to rename dataframe column from key to value.
dropslistlist of columns to drop from dataframe.
columnslistlist of columns to select from dataframe and exclude others.

Methods

api_id()

return current object id on Web API format.

endpoint()

return endpoint name used to contact backend.

from_json()

load the object from a dict originating of a JSON format.

NameTypeDefaultDescription
objobject to load information from.

prepare()

prepare the dataframe based in information from this pipeline I/O definition.

perform mapping, selection and drops.

NameTypeDefaultDescription
dfDataFrame

return: prepared dataframe.

set_id()

specify the id_value neutrally

NameTypeDefaultDescription
id_value

return:

to_json()

transform current object into a dict that could be JSONIFY.

NameTypeDefaultDescription
targetstrNone

return: dumpable dict.