无法从 html - Pandas 获取整个 table

Can not get entire table from html - Pandas

我试图使用 pandas 从一篇关于最大破产者 DATA 的维基百科文章中获取数据,但由于某种原因 table 不完整。我用过这个:

df = pd.read_html('https://en.wikipedia.org/wiki/List_of_largest_U.S._bank_failures')
type(df)
len(df)
df[1]`

PS:我在 Atom 上使用 hidrogen 到 运行 jupyter。但那是输出: 请解释发生了什么。我是数据科学的新手 Pandas

你得到了全部table。默认情况下,只显示一定数量的行,因此 ... 符号在中间。如果你想显示所有行你可以改变pandas显示默认如下:

# show at most 100 rows
pd.options.display.max_rows = 100

请注意,这只是一个显示设置,DataFrame 已包含所有 table 数据。