abel
1
Hi,
I typed this statement into the codex prompt:
#add a entry to the dataframe.
df.iLOC[i] = [‘col-1-value’, ‘col-2-value‘, ‘ col-3-value ‘]
add a row to df, where name is John, age is 2.
However , when I press submit, it turns John’s age to 21 adds a fake address and then outputs the code:
add a row to df, where name is John, age is 21 and address is “New York”
df.loc[i] = [‘John’, ‘New York’, 21]
I don’t want it to autocomplete my prompt for me. I just want the code!
How do I fix it?
What is the temperature set to? If it’s not 0 then it’s going to be more likely to add random stuff with the output
EDIT: Oh I see, I thought you meant it was changing your values in the completion, not actually in the prompt. In that case, do what boris said.
boris
3
Ensure you do a new line after the comment
1 Like
abel
4
Thank you, I tried a new line and it works! 