QuantileDiscretizer is not whiteliested erro!!

sandeephenkel23
New Contributor III

Dear Team,

We observed that while attempting to use the following import:

from pyspark.sql import functions as F

from pyspark.ml.feature import QuantileDiscretizer

we are encountering the following error:

Py4JSecurityException: QuantileDiscretizer is not whitelisted.

This suggests that the QuantileDiscretizer class is restricted due to security policies within the current environment. Could you kindly advise on how to proceed