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
I am relatively new to python and i am getting this error:
Traceback (most recent call last):
File "train.py", line 37, in
(X_train,y_train),(X_val,y_val) = get_mnist_data()
File "train.py", line 16, in get_mnist_data
labels = data[[0]].values.ravel()
File "/home/ishnit/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 1958, in getitem
return self._getitem_array(key)
File "/home/ishnit/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 2002, in _getitem_array
indexer = self.loc._convert_to_indexer(key, axis=1)
File "/home/ishnit/.local/lib/python2.7/site-packages/pandas/core/indexing.py", line 1231, in _convert_to_indexer
raise KeyError('%s not in index' % objarr[mask])
KeyError: '[0] not in index'
The text was updated successfully, but these errors were encountered:
I am relatively new to python and i am getting this error:
Traceback (most recent call last):
File "train.py", line 37, in
(X_train,y_train),(X_val,y_val) = get_mnist_data()
File "train.py", line 16, in get_mnist_data
labels = data[[0]].values.ravel()
File "/home/ishnit/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 1958, in getitem
return self._getitem_array(key)
File "/home/ishnit/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 2002, in _getitem_array
indexer = self.loc._convert_to_indexer(key, axis=1)
File "/home/ishnit/.local/lib/python2.7/site-packages/pandas/core/indexing.py", line 1231, in _convert_to_indexer
raise KeyError('%s not in index' % objarr[mask])
KeyError: '[0] not in index'
The text was updated successfully, but these errors were encountered: