---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-8-9d24801bbdb4> in <module>
2
3 df_tmp = ((schools_2006_v3.iloc[indicies])[["Total Cohort","Total Grads - n",'Advanced Regents - n',"boro_num1",
----> 4 "boro_num2","boro_num3","boro_num4","boro_num5",'nearby_store_count']])
5 len(df_tmp)
6
~/.virtualenvs/crosscompute/lib/python3.6/site-packages/pandas/core/frame.py in __getitem__(self, key)
2932 key = list(key)
2933 indexer = self.loc._convert_to_indexer(key, axis=1,
-> 2934 raise_missing=True)
2935
2936 # take() does not accept boolean indexers
~/.virtualenvs/crosscompute/lib/python3.6/site-packages/pandas/core/indexing.py in _convert_to_indexer(self, obj, axis, is_setter, raise_missing)
1352 kwargs = {'raise_missing': True if is_setter else
1353 raise_missing}
-> 1354 return self._get_listlike_indexer(obj, axis, **kwargs)[1]
1355 else:
1356 try:
~/.virtualenvs/crosscompute/lib/python3.6/site-packages/pandas/core/indexing.py in _get_listlike_indexer(self, key, axis, raise_missing)
1159 self._validate_read_indexer(keyarr, indexer,
1160 o._get_axis_number(axis),
-> 1161 raise_missing=raise_missing)
1162 return keyarr, indexer
1163
~/.virtualenvs/crosscompute/lib/python3.6/site-packages/pandas/core/indexing.py in _validate_read_indexer(self, key, indexer, axis, raise_missing)
1250 if not(self.name == 'loc' and not raise_missing):
1251 not_found = list(set(key) - set(ax))
-> 1252 raise KeyError("{} not in index".format(not_found))
1253
1254 # we skip the warning on Categorical/Interval
KeyError: "['nearby_store_count'] not in index"