SyntaxFix
Write A Post
Hire A Developer
Questions
If you know the position, why not just get the index from that?
Then use .loc:
.loc
df.loc[index, 'COL_NAME'] = x