如何解决TypeError:'sliceNone,None,None,slice1,None,None'是无效的键
我试图将DBSCAN聚类算法拟合到数据集中。数据集的标题如下所示:
Width 60% = Width ? cm
Height 31% = Height ? cm
,示例数据如下:
[Summary Severity category component priority Issues]
这样做时,我遇到了“ ValueError:在scaler.fit_transform时无法将字符串转换为float:”,我使用https://stackoverflow.com/a/53473541/13659094解决了该问题
但是从那以后,我面临着一个新问题:
[aaa_bbb_ccc @ABC 2.0 @August Regression - XYZ - ABCD - We have got the Income Reasonability Rule (V60300) but we are not getting the SSR (Self Service) Page for ABCD in XYZ environment.,2-Major,Application - Code,ABCD,High,We have got the Income Reasonability Rule (V60300) but we are not getting the SSR (Self Service) Page for ABCD in XYZ environment.]
...........
代码如下:
X1 = np.concatenate([transformed,X[:,0:]],axis=1)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py",line 2927,in __getitem__
indexer = self.columns.get_loc(key)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py",line 2657,in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx",line 108,in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx",line 110,in pandas._libs.index.IndexEngine.get_loc
TypeError: '(slice(None,None,None),slice(0,None))' is an invalid key
任何人都可以为我提供有关如何解决此问题的解决方案,我可以将DBSCAN算法适合此数据集吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。