Can the time series in the dataset have different frequencies?edit

No, all time series in the dataset have to have the same frequency (your bucket_interval property). Nans and missing values will prevent the model from generating a forecast or detecting anomalies. You can workaound missing values by assigning a default value to each individual value.