You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
silhouette.py line 19, the second variable "feature_count_end_column" is not converted to integer, which gives a TypeError.
Traceback (most recent call last):
File "/home/vanessa/tools/GRADitude/bin/graditude", line 1361, in
main()
File "/home/vanessa/tools/GRADitude/bin/graditude", line 1074, in main
args.func(args)
File "/home/vanessa/tools/GRADitude/bin/graditude", line 1151, in silhouette_analysis
args.max_number_of_clusters)
File "/home/vanessa/tools/GRADitude/bin/graditudelib/silhouette.py", line 12, in silhouette_analysis
feature_count_start_column, feature_count_end_column)
File "/home/vanessa/tools/GRADitude/bin/graditudelib/silhouette.py", line 19, in _extract_value_matrix
return feature_count_table_df.iloc[:, int(feature_count_start_column):feature_count_end_column]
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1472, in getitem
return self._getitem_tuple(key)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 2029, in _getitem_tuple
retval = getattr(retval, self.name)._getitem_axis(key, axis=axis)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 2080, in _getitem_axis
return self._get_slice_axis(key, axis=axis)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 2048, in _get_slice_axis
slice_obj = self._convert_slice_indexer(slice_obj, axis)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 266, in _convert_slice_indexer
return ax._convert_slice_indexer(key, kind=self.name)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 1691, in _convert_slice_indexer
self._validate_indexer('slice', key.stop, kind),
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 4128, in _validate_indexer
self._invalid_indexer(form, key)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 1848, in _invalid_indexer
kind=type(key)))
TypeError: cannot do slice indexing on <class 'pandas.core.indexes.base.Index'> with these indexers [33] of <class 'str'>
Best regards,
Vanessa
The text was updated successfully, but these errors were encountered:
Hello,
silhouette.py line 19, the second variable "feature_count_end_column" is not converted to integer, which gives a TypeError.
Traceback (most recent call last):
File "/home/vanessa/tools/GRADitude/bin/graditude", line 1361, in
main()
File "/home/vanessa/tools/GRADitude/bin/graditude", line 1074, in main
args.func(args)
File "/home/vanessa/tools/GRADitude/bin/graditude", line 1151, in silhouette_analysis
args.max_number_of_clusters)
File "/home/vanessa/tools/GRADitude/bin/graditudelib/silhouette.py", line 12, in silhouette_analysis
feature_count_start_column, feature_count_end_column)
File "/home/vanessa/tools/GRADitude/bin/graditudelib/silhouette.py", line 19, in _extract_value_matrix
return feature_count_table_df.iloc[:, int(feature_count_start_column):feature_count_end_column]
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1472, in getitem
return self._getitem_tuple(key)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 2029, in _getitem_tuple
retval = getattr(retval, self.name)._getitem_axis(key, axis=axis)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 2080, in _getitem_axis
return self._get_slice_axis(key, axis=axis)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 2048, in _get_slice_axis
slice_obj = self._convert_slice_indexer(slice_obj, axis)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 266, in _convert_slice_indexer
return ax._convert_slice_indexer(key, kind=self.name)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 1691, in _convert_slice_indexer
self._validate_indexer('slice', key.stop, kind),
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 4128, in _validate_indexer
self._invalid_indexer(form, key)
File "/home/vanessa/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 1848, in _invalid_indexer
kind=type(key)))
TypeError: cannot do slice indexing on <class 'pandas.core.indexes.base.Index'> with these indexers [33] of <class 'str'>
Best regards,
Vanessa
The text was updated successfully, but these errors were encountered: