0

Im having trouble affecting just one item on a column , instead afeccting The whole column

        a = dv.loc[edges[i], 'Capacity']
        c = dv.loc[0, i]
        minus = a - c
        dv = dv.replace(a,minus)
        dv = dv.replace(c, 0)
        
    

Here is an image of the output

  • Your question is currently rather unclear and contains a lot of code that's most likely not related to the problem. Could you narrow it down, preferably using a MRE (see [How to create a Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) and here [How to make good reproducible pandas examples](https://stackoverflow.com/q/20109391/14311263))? – Timus Feb 27 '22 at 12:22

0 Answers0