

 Amazon Redshift는 패치 198부터 새 Python UDF 생성을 더 이상 지원하지 않습니다. 기존 Python UDF는 2026년 6월 30일까지 계속 작동합니다. 자세한 내용은 [블로그 게시물](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)을 참조하세요.

# UDF에 대한 Python 언어 지원
<a name="udf-python-language-support"></a>

Python 프로그래밍 언어를 기반으로 사용자 지정 UDF를 생성할 수 있습니다. 다음 모듈을 제외하고, UDF에서 [Python 2.7 Standard Library](https://docs.python.org/2/library/index.html)를 사용할 수 있습니다.
+ ScrolledText
+ Tix
+ Tkinter
+ tk
+ turtle
+ smtpd

다음 모듈은 Python Standard Library 외에 Amazon Redshift에도 구현되어 있습니다.
+ [numpy 1.8.2](http://www.numpy.org/)
+ [pandas 0.14.1](https://pandas.pydata.org/)
+ [python-dateutil 2.2](https://dateutil.readthedocs.org/en/latest/)
+ [pytz 2014.7](https://pypi.org/project/pytz/2014.7/)
+ [scipy 0.12.1](https://www.scipy.org/)
+ [six 1.3.0](https://pypi.org/project/six/1.3.0/)
+ [wsgiref 0.1.2](https://pypi.python.org/pypi/wsgiref)

또한 사용자 지정 Python 모듈을 가져와서 UDF에서 [CREATE LIBRARY](r_CREATE_LIBRARY.md) 명령을 실행하는 데 사용할 수 있습니다. 자세한 내용은 [예제: 사용자 지정 Python 라이브러리 모듈 가져오기](udf-importing-custom-python-library-modules.md) 섹션을 참조하세요.

**중요**  
Amazon Redshift는 UDF를 통해 파일 시스템에 접근하려는 모든 네트워크 액세스와 쓰기 액세스를 차단합니다.

**참고**  
Python 3는 Python UDF에는 사용할 수 없습니다. Amazon Redshift UDF에 대한 Python 3 지원을 얻으려면 [Scalar Lambda UDF](udf-creating-a-lambda-sql-udf.md)을 사용하세요.