datascience.tables.Table.read_table

classmethod Table.read_table(filepath_or_buffer, *args, **vargs)[source]

Read a table from a file or web address.

Args:
filepath_or_buffer – string or file handle / StringIO; The string

could be a URL. Valid URL schemes include http, ftp, s3, and file.

Returns:

a table read from argument

Example:

>>> Table.read_table('https://www.inferentialthinking.com/data/sat2014.csv')
State        | Participation Rate | Critical Reading | Math | Writing | Combined
North Dakota | 2.3                | 612              | 620  | 584     | 1816
Illinois     | 4.6                | 599              | 616  | 587     | 1802
Iowa         | 3.1                | 605              | 611  | 578     | 1794
South Dakota | 2.9                | 604              | 609  | 579     | 1792
Minnesota    | 5.9                | 598              | 610  | 578     | 1786
Michigan     | 3.8                | 593              | 610  | 581     | 1784
Wisconsin    | 3.9                | 596              | 608  | 578     | 1782
Missouri     | 4.2                | 595              | 597  | 579     | 1771
Wyoming      | 3.3                | 590              | 599  | 573     | 1762
Kansas       | 5.3                | 591              | 596  | 566     | 1753
... (41 rows omitted)