> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# atoti.Table

### *final class* atoti.Table

In-memory table of a [`Session`](./atoti.session#atoti.Session).

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> table = session.create_table(
...     "Example",
...     data_types={"Product": "String", "Quantity": "int"},
... )
```

Listing all the column names:

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> list(table)
['Product', 'Quantity']
```

Testing if the table has a given column:

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> "Product" in table
True
>>> "Price" in table
False
```

| [`drop`](./atoti.Table.drop#atoti.Table.drop)                   | Delete some of the table's rows.                                |
| --------------------------------------------------------------- | --------------------------------------------------------------- |
| [`head`](./atoti.Table.head#atoti.Table.head)                   | Return at most *n* random rows of the table.                    |
| [`join`](./atoti.Table.join#atoti.Table.join)                   | Define a join between this source table and the *target* table. |
| [`keys`](./atoti.Table.keys#atoti.Table.keys)                   | Names of the key columns of the table.                          |
| [`load`](./atoti.Table.load#atoti.Table.load)                   | Load data into the table.                                       |
| [`load_async`](./atoti.Table.load_async#atoti.Table.load_async) | Load data into the table asynchronously.                        |
| [`name`](./atoti.Table.name#atoti.Table.name)                   | Name of the table.                                              |
| [`query`](./atoti.Table.query#atoti.Table.query)                | Query the table to retrieve some of its rows.                   |
| [`row_count`](./atoti.Table.row_count#atoti.Table.row_count)    | The number of rows in the table.                                |
| [`scenario`](./atoti.Table.scenario#atoti.Table.scenario)       | Scenario on which the table is.                                 |
| [`scenarios`](./atoti.Table.scenarios#atoti.Table.scenarios)    | All the scenarios the table can be on.                          |
| [`stream`](./atoti.Table.stream#atoti.Table.stream)             | Stream data into the table.                                     |
