Traceback (most recent call last):
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3296, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-43-28b5d71c5244>", line 2, in <module>
stop_copy['distance'] = stop_copy[['osmid_left', 'osmid_right']].apply(Distance, 1)
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/pandas/core/frame.py", line 6487, in apply
return op.get_result()
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/pandas/core/apply.py", line 151, in get_result
return self.apply_standard()
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/pandas/core/apply.py", line 251, in apply_standard
labels=labels)
File "pandas/_libs/reduction.pyx", line 641, in pandas._libs.reduction.reduce
File "pandas/_libs/reduction.pyx", line 141, in pandas._libs.reduction.Reducer.get_result
File "pandas/_libs/properties.pyx", line 69, in pandas._libs.properties.AxisProperty.__set__
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/pandas/core/series.py", line 380, in _set_axis
self._data.set_axis(axis, labels)
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 149, in set_axis
old_len = len(self.axes[axis])
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2033, in showtraceback
stb = value._render_traceback_()
AttributeError: 'KeyboardInterrupt' object has no attribute '_render_traceback_'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/IPython/core/ultratb.py", line 1095, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/IPython/core/ultratb.py", line 313, in wrapped
return f(*args, **kwargs)
File "/anaconda3/envs/Nessy/lib/python3.6/site-packages/IPython/core/ultratb.py", line 347, in _fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "/anaconda3/envs/Nessy/lib/python3.6/inspect.py", line 1488, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File "/anaconda3/envs/Nessy/lib/python3.6/inspect.py", line 1446, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "/anaconda3/envs/Nessy/lib/python3.6/inspect.py", line 696, in getsourcefile
if getattr(getmodule(object, filename), '__loader__', None) is not None:
File "/anaconda3/envs/Nessy/lib/python3.6/inspect.py", line 739, in getmodule
f = getabsfile(module)
File "/anaconda3/envs/Nessy/lib/python3.6/inspect.py", line 708, in getabsfile
_filename = getsourcefile(object) or getfile(object)
File "/anaconda3/envs/Nessy/lib/python3.6/inspect.py", line 693, in getsourcefile
if os.path.exists(filename):
File "/anaconda3/envs/Nessy/lib/python3.6/genericpath.py", line 19, in exists
os.stat(path)
KeyboardInterrupt