'numpy.ndarray' object has no attribute 'columns'
时间: 2023-08-21 15:06:09 浏览: 155
将numpy.ndarray格式图像转化为_io.BufferedReader格式
引用中提到了解决'numpy.ndarray' object has no attribute 'columns'的方法,可以直接使用a.tolist()来处理数据。另外,引用中提到可以使用df.values或者np.array(df)来替代df.as_matrix()来查看版本。对于引用的问题,根据代码中的注释,需要使用一个包含八个元素的columns列表来循环,并使用sns.violinplot来绘制小提琴图。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [AttributeError: ‘numpy.ndarray‘ object has no attribute ‘columns](https://blog.csdn.net/blbyu/article/details/121449073)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [AttributeError: ‘DataFrame‘ object has no attribute ‘as_matrix](https://blog.csdn.net/qq_46092061/article/details/128959238)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [AttributeError: ‘numpy.ndarray‘ object has no attribute ‘fill_betweenx](https://blog.csdn.net/zhongkeyuanchongqing/article/details/126412911)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文