tsa.multi_update#

mainsource.multi_update(author, updatemap, metadata=None, insertion_date=None, keepnans=False)#

Update several series at once.

Each series in updatemap is independently updated: new points are added, changed points are changed, unchanged points are ignored.

This is a bulk ingestion entry point, not a federation one: unlike update, it does not ask the secondary sources whether a series may be created here.

updatemap is a dict of {name: pd.Series}.

The author is mandatory and shared by all updates.

The whole batch shares a single transaction: it lands entirely or not at all.

>>> tsa.multi_update('babar@pythonian.fr', {
...     'temperature': temp_series,
...     'pressure': press_series,
... })
{}
Parameters:
  • author (str)

  • updatemap (dict)

  • metadata (dict | None)

  • insertion_date (datetime | None)

  • keepnans (bool | None)

Return type:

dict