Iloc  type: iloc#

class lumen.transforms.base.Iloc(*, end, start, controls, name)#

Iloc allows selecting the data with integer indexing, see pandas.DataFrame.iloc.

df.iloc[<start>:<end>]


Parameters#

end

type: int
default: None
bounds: None

start

type: int
default: None
bounds: None


Methods#

Iloc.apply(table: DataFrame) DataFrame#

Given a table transform it in some way and return it.

Parameters:

table (DataFrame) – The queried table as a DataFrame.

Returns:

A DataFrame containing the transformed data.

Return type:

DataFrame

Iloc.to_spec(context: Dict[str, Any] | None = None) Dict[str, Any]#

Exports the full specification to reconstruct this component.

Return type:

Resolved and instantiated Component object