Pandas, targeting specific cell with values from list in python

Viewed 41

I am making a discord bot, to constantly update my google sheets to track a record of dkp values from clan system. I am trying to run this code below, it goes through registers with print outs of what I want it to do but does not update the actual data frame. Was wondering if there a easy way to manipulate this code to actually work? P.s. tried .at .loc both of those return key error traceback.

boss is list where I split the message from discord and use to make the commands.

for i in range(2, len(boss)):     #go through the list of discord ids starting at possition 2 of boss list mentioned above.
     df[boss[0]][boss[i]] + int(boss[1])   #targeting a cell at position to update current value in the data frame.by adding specified amount from discord.
0 Answers
Related