部分源码:

data.sort(ascending = False)

Python3.6版本下报错:

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

更改后代码:

data.sort_values(ascending = False)

结果:

Python数据分析与挖掘实战之贡献度分析

 

相关文章:

  • 2021-08-12
  • 2022-02-04
  • 2021-06-15
  • 2021-11-14
  • 2021-11-19
  • 2021-05-02
  • 2021-08-03
猜你喜欢
  • 2021-04-28
  • 2022-01-10
  • 2021-04-03
  • 2021-08-23
  • 2021-04-19
  • 2021-09-21
  • 2021-10-06
相关资源
相似解决方案