I have a dataframe that looks like the below. What I'd like to do is create another column that is based on the VALUE of the index (so anything less the 10 would have another column and be labeled as "0"). I tried with:

```
df['Disp'] = '0'
df['Disp'][df.index < 10] = '1'

```

but i get the error "SettingWithCopyWarning:"

```
df = pd.DataFrame({ 'Hora': [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
                    'EUGE': ['RE','RE','RE','RE','RE','RE','RE','RE','RE','RE','RE','RE','RE','RE','RE'], 
                    'Tipo_Dato': ['DM','DM','DM','DS','DS','DS','DM','DS','DS','DM','DM','DM','DS','DM','DM']})

```

i should get:

```
     Hora EUGE Tipo_Dato  Disp
0      1   RE        DM     0
1      2   RE        DM     0
2      3   RE        DM     0
3      4   RE        DS     0
4      5   RE        DS     0
5      6   RE        DS     0
6      7   RE        DM     0
7      8   RE        DS     0
8      9   RE        DS     0
9     10   RE        DM     0
10    11   RE        DM     1
11    12   RE        DM     1
12    13   RE        DS     1
13    14   RE        DM     1

```