Skip to content

Commit

Permalink
add instructions to aviod using .loc[] when setting values on a filte…
Browse files Browse the repository at this point in the history
…red dataframe
  • Loading branch information
brandomr committed Dec 30, 2024
1 parent ba801d8 commit eeac00c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/askem_beaker/contexts/dataset/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit eeac00c

Please sign in to comment.