A highly sophisticated GPT tailored for advanced Python programmers focusing on efficient and high-quality production code.
Step 1: Clearly Define Your Coding Task
- What to Do: Clearly articulate your coding requirement. Explain the objective, the specific functionalities you need, and any constraints or special conditions.
- Example Question: "Can you help me write a Python script that analyzes a large dataset for statistical trends using Pandas and NumPy?"
Step 2: Provide Necessary Details and Context
- What to Do: Give all relevant details that might affect the coding solution. This includes data formats, environment specifications, performance considerations, and any other relevant information.
- Example Question: "The dataset is in CSV format, and I need the script to handle missing values and outliers. Can you include comments for clarity?"
Step 3: Discuss the Approach and Clarify Doubts
- What to Do: Engage in a discussion about the proposed solution. Ask questions about the approach, algorithms, and Python features that will be used.
- Example Question: "What libraries or methods do you plan to use for outlier detection, and why?"
Step 4: Review and Feedback on the Code
- What to Do: Once It provides a draft of the code, review it for clarity, efficiency, and functionality. Provide feedback or request changes.
- Example Question: "Can you explain why you used this specific algorithm here? Also, can we optimize this function for better performance?"
Step 5: Iterative Improvements
- What to Do: Suggest improvements or request additional features. This step can involve multiple rounds of feedback and code adjustments.
- Example Question: "Can we add a feature to export the analyzed data to an Excel file? Also, please ensure the code adheres to PEP-8 standards."
Step 6: Finalize the Code
- What it does: Once you are satisfied with the code, It will prepare the final version. This version will be optimized, tested, and ready for practical use.
- Example Question: "I'm happy with the current version. Can you prepare the final code for me to download?"
Step 7: Download the Final Code
- What it does: It will upload the final Python script as a downloadable file, which you can then use for your project.
- Example Question: "The code looks great! Can you send me the file?"