tsa.group_replace#

mainsource.group_replace(name, df, author, metadata=None, insertion_date=None)#

Replace a group named by <name> with the input dataframe.

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

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

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

Parameters:
  • name (str)

  • df (DataFrame)

  • author (str)

  • metadata (dict | None)

  • insertion_date (Timestamp | None)

Return type:

None