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)

Create instance and initialize the logger.

update(self)[source]
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.

Create instance and initialize the logger.

update(self)[source]
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.

Create instance and initialize the logger.

update(self)[source]