diff --git a/src/askem_beaker/contexts/dataset/agent.py b/src/askem_beaker/contexts/dataset/agent.py index 6d43af6..d33b944 100644 --- a/src/askem_beaker/contexts/dataset/agent.py +++ b/src/askem_beaker/contexts/dataset/agent.py @@ -65,6 +65,8 @@ async def generate_code( {incidence_to_prevalence} +Always use .loc[] when setting values in a filtered dataframe - it's clearer and safer than working with a view/copy. + Please generate the code as if you were programming inside a Jupyter Notebook and the code is to be executed inside a cell. You MUST wrap the code with a line containing three backticks (```) before and after the generated code. No addtional text is needed in the response, just the code block.