seaborn绘图时遇到AttributeError: 'float' object has no attribute 'shape'
其他
2018-10-31 09:21:41
阅读次数: 0
seaborn绘图时遇到AttributeError: ‘float’ object has no attribute ‘shape’
![这里写图片描述](https://img-blog.csdn.net/20180803213312899?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3NpbGVuY2UyMDE1/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)
问题还是出在数值类型,将类别的转为category,数值转为对应的float32就行了
![这里写图片描述](https://img-blog.csdn.net/20180803213431142?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3NpbGVuY2UyMDE1/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)
转载自blog.csdn.net/silence2015/article/details/81394837