tsa.replace#

mainsource.replace(name, replacets, author, metadata=None, insertion_date=None, **kw)#

Replace a series named by <name> with the input pandas series.

This creates a new version of the series. The series is completely replaced with the provided values.

The author is mandatory. The metadata dictionary allows to associate any metadata with the new series revision.

It is possible to force an insertion_date, which can only be higher than the previous insertion_date.

Parameters:
  • name (str)

  • replacets (Series)

  • author (str)

  • metadata (dict | None)

  • insertion_date (datetime | None)

Return type:

Series | None