The digital transformation of enterprises has brought great changes to the audit service demand of enterprises and the audit service supply of auditors. Therefore, there is a pressing need to study the digital transformation of enterprises and its impact on auditor switch. This paper aims to explore the influence of enterprise digital transformation on auditor switch and its potential implications for improving auditor efficiency. Using Python's machine learning tools and text analysis methods, This paper measure the digital transformation of Chinese listed companies and study the impact of digital transformation on the frequency of auditors witches. Our findings suggest that companies that have undergone digital transformation have reduced the frequency of changing auditors by alleviating information asymmetry, enhancing the effectiveness of companies' internal controls and increasing audit fees. This unique measurement mode of digital transformation provides new evidence for the relationship between the audit service demand of enterprises and the audit service supply of auditors under the digital transformation environment. The research can assist businesses in understanding how digital transformation affects auditing professionally and in improving their audit processes accordingly.