用pandas的loc函数赋值,出现数据类型不是期望的list的情况
代码如下
用pandas的loc函数来提取数据,不要用来赋值为list
结果如下:
用pandas的loc函数来提取数据,不要用来赋值为list
期望dest_nid对应那一列的每个数据为list实际上不是
!!!所以,用pandas的loc函数来提取数据,不要用来赋值为list

推荐用下面的代码形式来给赋值
用pandas的loc函数来提取数据,不要用来赋值为list

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2021-06-09
  • 2022-12-23
  • 2021-10-14
相关资源
相似解决方案