# What's the migration path for ray.data.aggregate's Max, Mean, Min, and Std functions?

**URL:** <https://discuss.ray.io/t/whats-the-migration-path-for-ray-data-aggregates-max-mean-min-and-std-functions/21366>\
**Category:** Ray Data\
**Created:** [January 4, 2025, 9:40pm UTC](https://discuss.ray.io/t/whats-the-migration-path-for-ray-data-aggregates-max-mean-min-and-std-functions/21366 "2025-01-04T21:40:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![davidxia](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/davidxia/32/2951_2.png) [@davidxia](https://discuss.ray.io/u/davidxia)\
**Post date:** [January 4, 2025, 9:40pm UTC](https://discuss.ray.io/t/whats-the-migration-path-for-ray-data-aggregates-max-mean-min-and-std-functions/21366/1 "2025-01-04T21:40:05Z")

</div>

Hi, I was using `from ray.data.aggregate import Max, Mean, Min, Std` in ray 2.23.0. But after upgrading to 2.40.0, these [functions were moved](https://github.com/ray-project/ray/pull/46193) to `ray.data._internal.aggregate`. What’s the suggested way to use these functions now?

---

_[View the full topic](https://discuss.ray.io/t/whats-the-migration-path-for-ray-data-aggregates-max-mean-min-and-std-functions/21366)._
