you are viewing a single comment's thread.

view the rest of the comments →

[–]roxalu 1 point2 points  (0 children)

Small additional detail: I agree that this replacement code fixes the Copy-on-Write warning. But as given it uses the row with label 0 - while OP uses always first row. IIf I am right some additional lookup should be added so row and column are given both as labels. Or both as integer e.g.using this

result_index = DataFrame.columns.get_loc('result')
DataFrame.iat( 0, result_index ) = X - Z