Can Python scripts be imported for data analysis?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 可以导入python脚本进行数据分析吗?

| username: TiDBer_77DemBHR

Can TiDB import Python scripts and perform data analysis through user-defined functions when conducting data analysis?

| username: xfworld | Original post link

It does not support UDF, but you can write a script to retrieve the data through the SQL client and then perform the corresponding analysis.

| username: ti-tiger | Original post link

Functions and procedures are not yet supported. It is recommended to implement business logic in the business code. The database should be used primarily for storing data and performing simple data statistics.

| username: ShawnYan | Original post link

Pushing business logic down to the DB is a practice from the last century. Connect to TiDB with Python and implement the logic in the code.

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.