I have a dataframe dframe and i want to iterate over lines of my column number if number <5 then my column STATE takes the value 'vv'
if number is between [5..17] so my value of my column STATE takes 'xx'.
ELSE STATE takes 'yy'.
SO I wrote this code but it doesn't work..

ANy helps please.

thank you
`

```
for it in dframe['number']:
        if (it < 5):
            dframe['STATE'] = 'vv'
        elif (it >= 5 & it < 17):
            dframe['STATE'] = 'xx' 
        else: 
            dframe['STATE'] = 'yy'`

```