Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: sfc-gh-mvashishtha <[email protected]>
  • Loading branch information
sfc-gh-mvashishtha committed Sep 12, 2024
1 parent 966e5fa commit f91eb33
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from snowflake.snowpark.modin.pandas import DataFrame, Series
from snowflake.snowpark.modin.plugin._internal.aggregation_utils import (
AggregateColumnOpParameters,
SnowflakeAggFunc,
aggregate_with_ordered_dataframe,
)
from snowflake.snowpark.modin.plugin.compiler.snowflake_query_compiler import (
Expand Down Expand Up @@ -440,7 +441,14 @@ def mean(
pandas_labels=["mean"]
)[0]
agg_column_op_params = AggregateColumnOpParameters(
index_id, LongType(), "mean", new_index_id, fn.mean, []
index_id,
LongType(),
"mean",
new_index_id,
snowflake_agg_func=SnowflakeAggFunc(
preserves_snowpark_pandas_types=True, snowpark_aggregation=fn.mean
),
ordering_columns=[],
)
mean_value = aggregate_with_ordered_dataframe(
frame.ordered_dataframe, [agg_column_op_params], {"skipna": skipna}
Expand Down

0 comments on commit f91eb33

Please sign in to comment.