I am trying to practice using the read\_html function from pandas by crawling a table but I got an error. My code as follow:

```
import pandas as pd
url = "https://www.pokemondb.net/pokedex/all"
dfs = pd.read_html(url)

```

The above code returned errors and didn't work out, so I tried the one following, but it still doesn't work.

```
from bs4 import BeautifulSoup
import pandas as pd
import requests
url = "https://www.pokemondb.net/pokedex/all"
html = requests.get(url)
soup = BeautifulSoup(html.text, "html.parser")
dfs = pd.read_html(soup.table)

```

I don't exactly know what's wrong. Can anyone enlighten me on that?

Thanks!