in assets/functions/batch_anomaly_detection/app.py [0:0]
def weekend(ds): ds = pd.to_datetime(ds) if ds.weekday() > 4: return 1 else: return 0