dataframe1:
+-----+-----+
| index | list |
+-----+-----+
| 0 | [0,1] |
| 1 | [3] |
+----+------+
dataframe1中的list列内的列表是[0,1] 、 [3] ,因此,我想要对dataframe2中id为0、1、3的行的value列赋值为true
dataframe2:
+-----+-----+
| id | value |
+-----+-----+
| 0 | true |
| 1 | true |
| 2 | false |
| 3 | true |
+----+------+
如何得到dataframe2 ?
相似问题