You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, we can only construct an empty TimeSeries:
ts = TimeSeries()
or a TimeSeries with given attributes:
ts = TimeSeries(time=time, data=data, ...)
We can't construct a TimeSeries based on another object:
ts = TimeSeries(array)
ts = TimeSeries(dataframe) <-- we can using ts = TimeSeries.from_dataframe(dataframe)
ts = TimeSeries(list)
ts = TimeSeries(series)
ts = TimeSeries(dict_of_arrays)
All these contructs should be accepted and lead to a TimeSeries, with a matched time attribute, which will allow to typecast lots of types to TimeSeries and therefore will simplify compatibility with other Python tools.
breaking compatibility
This would lead to a compatibility break in some (maybe fictitious) cases where someone initialized a TimeSeries using a list of arguments rather than keyword arguments, because the init signature would move from:
At the moment, we can only construct an empty TimeSeries:
or a TimeSeries with given attributes:
We can't construct a TimeSeries based on another object:
All these contructs should be accepted and lead to a TimeSeries, with a matched time attribute, which will allow to typecast lots of types to TimeSeries and therefore will simplify compatibility with other Python tools.
breaking compatibility
This would lead to a compatibility break in some (maybe fictitious) cases where someone initialized a TimeSeries using a list of arguments rather than keyword arguments, because the init signature would move from:
to:
I think this is easy to solve in existing code, and it brings a lot of value.
The text was updated successfully, but these errors were encountered: