timeatlas.time_series_dataset.
TimeSeriesDataset
Defines a set of time series
A TimeSeriesDataset represent a set of TimeSeries objects.
__init__
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__([data])
Initialize self.
append(item)
append
Append a TimeSeries to TimeSeriesDataset
apply(func[, tsd])
apply
Apply function specialized for TimeSeriesDataset
boundaries()
boundaries
Get the tuple with the TimeSeries first and last index for all components in the TimeSeriesDataset
clear()
clear
Remove all items from list.
copy([deep])
copy
Copy a TimeSeriesDataset
count(value, /)
count
Return number of occurrences of value.
create(length, start, end[, freq])
create
Create an empty TimeSeriesDataset object with a defined index and period
describe()
describe
Describe a TimeSeriesDataset with the describe function from Pandas
duration()
duration
Get the duration for all TimeSeries in a TimeSeriesDataset
empty()
empty
Empty the values in each TimeSeries from a TimeSeriesDataset.
end()
end
Get the last Timestamp of a all components of a TimeSeriesDataset
extend(iterable, /)
extend
Extend list by appending elements from the iterable.
fill(value)
fill
Fill all values in each TimeSeries from a TimeSeriesDataset.
frequency()
frequency
Get the frequency of a each TimeSeries in a TimeSeriesDataset
group_by(freq[, method])
group_by
Groups values by a frequency for each TimeSeries in a TimeSeriesDataset.
index(value[, start, stop])
index
Return first index of value.
insert(index, object, /)
insert
Insert object before index.
interpolate(*args, **kwargs)
interpolate
Wrapper around the Pandas interpolate() method.
kurtosis()
kurtosis
Kurtosis of all TimeSeries in TimeSeriesDataset
max()
max
Maximum of all TimeSeries in TimeSeriesDataset
mean()
mean
Means of all TimeSeries in TimeSeriesDataset
median()
median
Median of all TimeSeries in TimeSeriesDataset
merge(tsd)
merge
Merge two TimeSeriesDataset by the index of the TimeSeries
merge_by_label(tsd)
merge_by_label
Merge two TimeSeriesDatasets by the label of the TimeSeries in the TimeSeriesDatasets
min()
min
Minimum of all TimeSeries in TimeSeriesDataset
normalize(method)
normalize
Normalize the TimeSeries in a TimeSeriesDataset with a given method
pad(limit[, side, value])
pad
Pad a TimeSeriesDataset until a given limit
plot(*args, **kwargs)
plot
Plot a TimeSeriesDataset
pop([index])
pop
Remove and return item at index (default last).
regularize([side, fill])
regularize
Regularize a TimeSeriesDataset so that all starting and ending timestamps are similar.
remove(value, /)
remove
Remove first occurrence of value.
resample(freq[, method])
resample
Convert the TimeSeries in a TimeSeriesDataset to a specified frequency.
reverse()
reverse
Reverse IN PLACE.
round(decimals)
round
Round the values of every TimeSeries in the TimeSeriesDataset with a defined number of digits
select_components_by_percentage(percent[, …])
select_components_by_percentage
Returns a subset of the TimeSeriesDataset with randomly chosen percentage elements without replacement.
select_components_randomly(n[, seed, indices])
select_components_randomly
Returns a subset of the TimeSeriesDataset with randomly chosen n elements without replacement.
shuffle([inplace])
shuffle
Randomizing the order of the TS in the TSD
skewness()
skewness
Skewness of all TimeSeries in TimeSeriesDataset
sort(*args, **kwargs)
sort
Sort the TimeSeries of a TimeSeriesDataset by time stamps
split_at(timestamp)
split_at
Split a TimeSeriesDataset at a defined point and include the splitting point in both as in [start,…,at] and [at,…,end].
split_in_chunks(n)
split_in_chunks
The TimeSeries in the TimeSeriesDataset are cut into chunks of length n
start()
start
Get the first Timestamp of a all components of a TimeSeriesDataset
time_detlas()
time_detlas
Compute the time difference between each timestamp for all TimeSeries
to_array()
to_array
TimeSeriesData to NumpyArray [n x len(tsd)], where n is number of
to_df()
to_df
Converts a TimeSeriesDataset to a Pandas DataFrame
to_pickle(path)
to_pickle
Creating a pickle out of the TimeSeriesDataset
to_text(path)
to_text
Export a TimeSeriesDataset to text format
trim([side])
trim
Remove NaNs from a TimeSeries start, end or both