Apr-24-2017, 04:47 PM
Try to run/think over nilamo's point 3 - its same for your code. In body of your loop you set
X
to reference "cell" content, and after that you rebind X
to a new value (NaN) - but you change just X
, not dataframe cell. Its similar toitem = [1] x = item[0] x = 10- if you check item list, it would be still
[1]
- unchanged.