etna icon indicating copy to clipboard operation
etna copied to clipboard

Should we allow TSDataset to hold non-continuous series?

Open iKintosh opened this issue 3 years ago • 1 comments

Checklist

  • [X] I have searched the issues.
  • [X] I have searched the docs.

❓ Questions and Help

Some tasks require us to delete some time periods from dataset (for example, the beginning of COVID in 2020). Should we allow our users to upload datasets with missing values as well?

iKintosh avatar May 31 '22 11:05 iKintosh

We already do 🤔

How to check

from etna.datasets import generate_ar_df, TSDataset

df = generate_ar_df(periods=100, start_time="2020-01-01", n_segments=2)
df = df[~((df.segment == "segment_0") & (df.timestamp.between("2020-01-10", "2020-01-30")))]
df = TSDataset.to_dataset(df)
ts = TSDataset(df, "D")
ts.plot()

julia-shenshina avatar May 31 '22 12:05 julia-shenshina

Will work on it in the separate track

alex-hse-repository avatar Aug 17 '22 09:08 alex-hse-repository