use super::rolling::WindowFunction;
use crate::{Error, Result, TypeError, Value};
#[allow(clippy::needless_pass_by_value)]
pub fn cumulative_agg(value: &Value, _column: &str, function: WindowFunction) -> Result<Value> {
match value {
Value::DataFrame(_df) => {
Err(Error::operation(format!(
"Cumulative {} not yet implemented",
function.name()
)))
}
Value::LazyFrame(_lf) => {
Err(Error::operation(format!(
"Cumulative {} not yet implemented",
function.name()
)))
}
_ => Err(TypeError::UnsupportedOperation {
operation: "cumulative_agg".to_string(),
typ: value.type_name().to_string(),
}
.into()),
}
}