I want to run the Python code on my own computer due to the large data size

I want to run the code that the assistant’s code interpreter would execute on my own computer when analyzing the dataset. However, the GPT assistant doesn’t have such a feature. My dataset has 4 million records, and due to insufficient computer resources provided by GPT, it is very slow or often results in errors. Is it possible for me to run the code prepared by the code interpreter on my local machine and then send the result to GPT? I tried using a function, but it doesn’t resemble the code interpreter’s code and usually generates incorrect code.