timeflux.nodes.axis


timeflux.nodes.axis: helpers to manipulate axis

axis

class timeflux.nodes.axis.Rename(**kwargs)[source]

Bases: timeflux.core.node.Node

Alter axes labels.

Variables:
  • i (Port) – Default data input, expects DataFrame.

  • o (Port) – Default output, provides DataFrame and meta.

Parameters:
  • kwargs – see arguments from

  • method](https ([pandas.DataFrame.rename) – //pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rename.html)

Instantiate the node.

update()[source]

Update the input and output ports.

class timeflux.nodes.axis.RenameColumns(names)[source]

Bases: timeflux.core.node.Node

Rename column labels from a list

Variables:
  • i (Port) – Default data input, expects DataFrame.

  • o (Port) – Default output, provides DataFrame and meta.

Parameters:

names (list) – New column names.

Instantiate the node.

update()[source]

Update the input and output ports.

class timeflux.nodes.axis.AddSuffix(suffix)[source]

Bases: timeflux.core.node.Node

Suffix labels with string suffix.

Variables:
  • i (Port) – Default data input, expects DataFrame.

  • o (Port) – Default output, provides DataFrame and meta.

Parameters:

suffix (string) – The string to add after each column label.

Instantiate the node.

update()[source]

Update the input and output ports.