报错代码

s = pd.Series([[1, 2, 3], 'foo', [], [3, 4]])
s

0 [1, 2, 3]
1 foo
2 []
3 [3, 4]
dtype: object

s.explode()

AttributeError: 'Series' object has no attribute 'explode'

解决: 升级pandas至0.25以及以上版本

相关文章:

  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-11-22
  • 2021-10-01
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案