PNDSPY1014

Message pandas.core.series.Series.aggregate has a partial mapping because there is a not supported scenario in Snowpark pandas.

Category Warning

Description

This issue appears when the SMA identifies a pandas.core.series.Series.aggregate usage. Snowpark pandas currently has limitations with Series.aggregate. Check Supported Aggregation Functions for a list of supported functions.

Scenario

An unsupported use of pandas.core.series.Series.aggregate.

Input

The following example shows an unsupported use of pandas.core.series.Series.aggregate.

import pandas as pd
import numpy as np

s = pd.Series([1, 2, 3, 4])
s.aggregate(['min', 'max'])
Copy

Output

The SMA adds the EWI PNDSPY1014 to the output code to indicate that it has a scenario not supported in Snowpark pandas.

from snowflake.snowpark.modin import plugin
import modin.pandas as pd
import numpy as np

df = pd.DataFrame([[1, 2, 3],
                       [4, 5, 6],
                       [7, 8, 9],
                       [np.nan, np.nan, np.nan]],
                      columns=['A', 'B', 'C'])
#EWI: PNDSPY1014 => pandas.core.series.Series.aggregate does not support some combinations of parameters for specific aggregate functions. Check Snowpark pandas documentation for more detail.
df.aggregate(['sum', 'min'])
Copy