Skip to content

Instantly share code, notes, and snippets.

@MichaelWS
Created January 4, 2014 14:55
Show Gist options
  • Save MichaelWS/8256143 to your computer and use it in GitHub Desktop.
Save MichaelWS/8256143 to your computer and use it in GitHub Desktop.
tail exception
/usr/anaconda/lib/python2.7/site-packages/pandas-0.13.0_16_g2c8a8ef-py2.7-linux-x86_64.egg/pandas/core/generic.pyc in tail(self, n)
1570 if abs(n) > l:
1571 n = l if n > 0 else -l
-> 1572 return self.iloc[-n:]
1573
1574 #----------------------------------------------------------------------
/usr/anaconda/lib/python2.7/site-packages/pandas-0.13.0_16_g2c8a8ef-py2.7-linux-x86_64.egg/pandas/core/indexing.pyc in __getitem__(self, key)
1018 return self._getitem_tuple(key)
1019 else:
-> 1020 return self._getitem_axis(key, axis=0)
1021
1022 def _getitem_axis(self, key, axis=0):
/usr/anaconda/lib/python2.7/site-packages/pandas-0.13.0_16_g2c8a8ef-py2.7-linux-x86_64.egg/pandas/core/indexing.pyc in _getitem_axis(self, key, axis)
1208 if isinstance(key, slice):
1209 self._has_valid_type(key, axis)
-> 1210 return self._get_slice_axis(key, axis=axis)
1211
1212 elif com._is_bool_indexer(key):
/usr/anaconda/lib/python2.7/site-packages/pandas-0.13.0_16_g2c8a8ef-py2.7-linux-x86_64.egg/pandas/core/indexing.pyc in _get_slice_axis(self, slice_obj, axis)
1200 if isinstance(slice_obj, slice):
1201 return self._slice(slice_obj, axis=axis, raise_on_error=True,
-> 1202 typ='iloc')
1203 else:
1204 return self.obj.take(slice_obj, axis=axis, convert=False)
/usr/anaconda/lib/python2.7/site-packages/pandas-0.13.0_16_g2c8a8ef-py2.7-linux-x86_64.egg/pandas/core/indexing.pyc in _slice(self, obj, axis, raise_on_error, typ)
73 def _slice(self, obj, axis=0, raise_on_error=False, typ=None):
74 return self.obj._slice(obj, axis=axis, raise_on_error=raise_on_error,
---> 75 typ=typ)
76
77 def __setitem__(self, key, value):
/usr/anaconda/lib/python2.7/site-packages/pandas-0.13.0_16_g2c8a8ef-py2.7-linux-x86_64.egg/pandas/core/frame.pyc in _slice(self, slobj, axis, raise_on_error, typ)
1834 axis = self._get_block_manager_axis(axis)
1835 new_data = self._data.get_slice(
-> 1836 slobj, axis=axis, raise_on_error=raise_on_error)
1837 return self._constructor(new_data)
1838
/usr/anaconda/lib/python2.7/site-packages/pandas-0.13.0_16_g2c8a8ef-py2.7-linux-x86_64.egg/pandas/core/internals.pyc in get_slice(self, slobj, axis, raise_on_error)
2514
2515 if raise_on_error:
-> 2516 _check_slice_bounds(slobj, new_axes[axis])
2517
2518 new_axes[axis] = new_axes[axis][slobj]
/usr/anaconda/lib/python2.7/site-packages/pandas-0.13.0_16_g2c8a8ef-py2.7-linux-x86_64.egg/pandas/core/indexing.pyc in _check_slice_bounds(slobj, values)
1521 if start is not None:
1522 if start < -l or start > l - 1:
-> 1523 raise IndexError("out-of-bounds on slice (start)")
1524 stop = slobj.stop
1525 if stop is not None:
IndexError: out-of-bounds on slice (start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment