Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If Then statement
#12
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 to
item = [1]
x = item[0]
x = 10
- if you check item list, it would be still [1] - unchanged.
Reply


Messages In This Thread
If Then statement - by smw10c - Apr-24-2017, 03:15 PM
RE: If Then statement - by wavic - Apr-24-2017, 03:45 PM
RE: If Then statement - by nilamo - Apr-24-2017, 03:55 PM
RE: If Then statement - by zivoni - Apr-24-2017, 04:15 PM
RE: If Then statement - by nilamo - Apr-24-2017, 04:18 PM
RE: If Then statement - by zivoni - Apr-24-2017, 04:27 PM
RE: If Then statement - by smw10c - Apr-24-2017, 04:30 PM
RE: If Then statement - by nilamo - Apr-24-2017, 04:39 PM
RE: If Then statement - by smw10c - Apr-24-2017, 04:41 PM
RE: If Then statement - by zivoni - Apr-24-2017, 05:08 PM
RE: If Then statement - by smw10c - Apr-24-2017, 05:17 PM
RE: If Then statement - by snippsat - Apr-24-2017, 04:19 PM
RE: If Then statement - by smw10c - Apr-24-2017, 04:25 PM
RE: If Then statement - by zivoni - Apr-24-2017, 04:47 PM
RE: If Then statement - by smw10c - Apr-24-2017, 04:55 PM
RE: If Then statement - by zivoni - Apr-24-2017, 05:35 PM
RE: If Then statement - by smw10c - Apr-24-2017, 07:16 PM
RE: If Then statement - by zivoni - Apr-24-2017, 07:59 PM
RE: If Then statement - by smw10c - Apr-24-2017, 08:10 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020