Reading web based url data into data frame using Jupyter Notebook

This isn’t pertinent to this forum. You are using Python in a Jupyter notebook and looking for it to work. Probably you’d get the same behavior if you ran this code as a Python script or in the Python console/interpreter and so it isn’t a Jupyter issue. This is a good test to consider, at least as a thought experiment if not an actual trial, when trying to decide where to seek support.
Additionally, how you’ve posted it isn’t helping people help you. You’d need to share the error because as you can see below it isn’t reproducible. (In fact, sharing what you see as text is very important 99.999999% of the time on forums such as these. You should use here and here as guides to posting in such forums.)

That being said, a lot of people here know a bit of Python…

As I explained above. I cannot discern what you are experiencing because you didn’t share your error. As you can see below, it runs just fine once you fix the quotes (see more about that below this screenshot),

(The code block I ran is below as code text since normally screenshots are highly discouraged. In this case there wasn’t much else going and and so I refrained form posting it is a gist I could have shared with you for rendering in nbviewer, sort of like this, which was illustrating some grander features, see here.)

You can experience it working for comparing to your own experience so that you can troubleshoot on your own further. Go here and put https://github.com/binder-examples/requirements in the top line of the form where it says ‘GitHub repository name or URL’ and then hit the orange launch button on the right. When the temporary, remote Jupyter session comes up you can install lxml via %pip install lxml and then restart the kernel and try to run the code I pasted below.

Other tips:
Please provide code here formatted as code blocks and not text, see here, with special attention to ‘Block code formatting’.

Preferably, always re-run your shared code, too. It had weird characters for the quotes according to where I ran it. Here is what I ran in the screen shot above:

import pandas as pd
import numpy as nd
url= "https://en.wikipedia.org/wiki/Wikipedia:Fundraising_statistics"
tables= pd.read_html(url)
1 Like