I have a df like this and I want to change the list of value into column
```
uid device
0 000 [1.0, 3.0]
1 001 [3.0]
2 003 [nan]
3 004 [2.0, 3.0]
4 005 [1.0]
5 006 [1.0]
6 006 [nan]
7 007 [2.0]
```
should be
```
uid device NA just_1 just_2or3 Both
0 000 [1.0, 3.0] 0 0 0 1
1 001 [3.0] 0 0 1 0
2 003 [nan] 1 0 0 0
3 004 [2.0, 3.0] 0 0 "1" 0
4 005 [1.0] 0 1 0 0
5 006 [1.0] 0 1 0 0
6 006 [nan] 1 0 0 0
7 007 [2.0] 0 1 1 0
8 008 [1.0, 2.0] 0 0 0 1
```
I want to change to dummy variable, if device only 1.0, set corresponding column value = 1, if 2.0, 3.0, [2.0,3.0],set just_2or3 = 1.
Only if 1.0 in list, like [1.0,3.0],[1.0,2.0],set both = 1
How can I do that? thank you