我想绘制两个变量的最佳拟合线。
我使用了seaborn.regplot()
方法,但是它显示出其中一个轴为'str',并且不能转换为'float'。有人可以建议我做这种情节吗?
我的值就像:
x = [10,11,12,9,14]
y = ['2013-14','2014-15','2015-16','2016-17','2017-18']
我想绘制两个变量的最佳拟合线。
我使用了seaborn.regplot()
方法,但是它显示出其中一个轴为'str',并且不能转换为'float'。有人可以建议我做这种情节吗?
我的值就像:
x = [10,11,12,9,14]
y = ['2013-14','2014-15','2015-16','2016-17','2017-18']