the dataset I have has the id feature and the number of purchases, I want to add a new column as a label of 4 or 3 numbers contained in id

for example

```
id          total
08773338    100
08333777    80

```

for example

```
0877 = California
083 = Tokyo

```

then

```
id        total    label
08773338   100   california
08333777   80    tokyo

```