Urlopen error [WinError 10061] No connection could be made because the target machine actively refused it

data_url = ‘url’
df = pd.read_csv(data_url)
This is my above code. when I run it i got error like below

File ~\AppData\Local\Programs\Python\Python310\lib\urllib\request.py:496, in OpenerDirector._call_chain(self, chain, kind, meth_name, *args)
494 for handler in handlers:
495 func = getattr(handler, meth_name)
→ 496 result = func(*args)
497 if result is not None:
498 return result

File ~\AppData\Local\Programs\Python\Python310\lib\urllib\request.py:1391, in HTTPSHandler.https_open(self, req)
1390 def https_open(self, req):
→ 1391 return self.do_open(http.client.HTTPSConnection, req,
1392 context=self._context, check_hostname=self._check_hostname)

File ~\AppData\Local\Programs\Python\Python310\lib\urllib\request.py:1351, in AbstractHTTPHandler.do_open(self, http_class, req, **http_conn_args)
1348 h.request(req.get_method(), req.selector, req.data, headers,
1349 encode_chunked=req.has_header(‘Transfer-encoding’))
1350 except OSError as err: # timeout error
→ 1351 raise URLError(err)
1352 r = h.getresponse()
1353 except:

URLError: <urlopen error [WinError 10061] No connection could be made because the target machine actively refused it>

Kindly help me I also disabled my firewall also.

This isn’t pertinent to this forum because I’m pretty sure if you ran that Python code you posted at the top was run in a more traditional way as a Python script or in the Python/console interpreter that you’d have the same issue. Hence, Jupyter isn’t involved. You can always actually test it that way or at least step through the thought experiment to evaluate the suitability of a post here. (Also note the code block would preferably be formatted as a code block on forums like this – see here, with special attention to ‘Block code formatting’.)

That all being said…
To troubleshoot this more yourself. Pick a URL you know that should work for getting a CSV from and try that. An example is this one at GitHub https://raw.githubusercontent.com/pandas-dev/pandas/main/pandas/tests/io/data/csv/tips.csv. (Again, if you were posting this at StackOverflow, you’d likely be expected to already try such step or at least use that URL as the the one you share in your post so others can try to reproduce your issue. You share no URL here and so no one can really tell you what is going on.) I would expect if you get the syntax right then getting it from GitHub should work and then you can try your other URL again. If that fails, then you know it isn’t your code and will have to come up with what is going on. Is authentication needed? Is that port blocked at your institution? Etc…