TypeError: 'AxesSubplot' object is not subscriptable的解决办法!!
在《Python数据分析与数据实战》这本书里,36page的代码清单3-1中有一处会报错TypeError: ‘AxesSubplot’ object is not subscriptable。
报错位置:p=data.boxplot()
解决方案:
只需在boxplot中加入return_type=‘dict’
在《Python数据分析与数据实战》这本书里,36page的代码清单3-1中有一处会报错TypeError: ‘AxesSubplot’ object is not subscriptable。
报错位置:p=data.boxplot()
解决方案:
只需在boxplot中加入return_type=‘dict’