Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen

httplib_response = self._make_request(


 "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request

conn.request(method, url, **httplib_request_kw)


 "/usr/lib/python3/dist-packages/urllib3/connection.py", line 234, in request

super(HTTPConnection, self).request(method, url, body=body, headers=headers)


 "/usr/lib/python3.9/http/client.py", line 1255, in request

self._send_request(method, url, body, headers, encode_chunked)


 "/usr/lib/python3.9/http/client.py", line 1301, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)


 "/usr/lib/python3.9/http/client.py", line 1250, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)


 "/usr/lib/python3.9/http/client.py", line 1010, in _send_output

self.send(msg)


 "/usr/lib/python3.9/http/client.py", line 950, in send

self.connect()


 "/usr/lib/python3/dist-packages/urllib3/connection.py", line 200, in connect

conn = self._new_conn()


 "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in _new_conn

raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc650f8b940>: Failed to establish a new connection: [Errno 111] Connection refused

Traceback (most recent call last):

 "/Users/josh/anaconda/envs/Openfolio/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 3066, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

 "<ipython-input-14-3f216cf6821e>", line 1, in <module>
df = extended_dfNameError: name 'extended_df' is not defined