snowflake.snowpark.Session.remove_package¶
- Session.remove_package(package: str) None [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/session.py#L1003-L1029)¶
Removes a third-party package from the dependency list of a user-defined function (UDF).
- Parameters:
package – The package name.
Examples:
>>> session.clear_packages() >>> len(session.get_packages()) 0 >>> session.add_packages("numpy", "pandas==1.3.5") >>> len(session.get_packages()) 2 >>> session.remove_package("numpy") >>> len(session.get_packages()) 1 >>> session.remove_package("pandas") >>> len(session.get_packages()) 0