tspy.data_structures.io.TimeSeriesWriteFormat module

class tspy.data_structures.io.TimeSeriesWriteFormat.TimeSeriesWriteFormat

Bases: object

Format which denotes how to write to a data-source

Methods

write(observations, encode_value_func, options)

Given a collection of observations, a value encoder and options created from time-series-writer, write to an outside data-source

abstract write(observations, encode_value_func, options)

Given a collection of observations, a value encoder and options created from time-series-writer, write to an outside data-source

Parameters
observationsObservationCollection

the in-memory observations to write to an outside data-source

encode_value_funcfunc

function to encode a value to a String, by default __str__ is used

optionsdict

key-value string pair in map of options to be used in writing