Please provide some sample data first and will be happy to do some testing for you and review it .
Perhaps you can use chatgpt: To use ChatGPT for coding, provide a clear and detailed prompt describing the specific code functionality you need, including the programming language, desired inputs and outputs, and any relevant constraints, then let ChatGPT generate the code snippet which you can review, test, and integrate into your project; remember to always thoroughly check and verify the generated code before using it in production