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

> Iterate on datasets and understand model predictions

# Tables overview

[Try in Colab](https://colab.research.google.com/github/wandb/examples/blob/master/colabs/datasets-predictions/W%26B_Tables_Quickstart.ipynb)

[Try in W\&B](https://forge.coreweave.com/wandb/wandb/examples/reports/AlphaFold-ed-Proteins-in-W-B-Tables--Vmlldzo4ODc0MDc)

Use W\&B Tables to visualize and query tabular data. For example:

* Compare how different models perform on the same test set
* Identify patterns in your data
* Look at sample model predictions visually
* Query to find commonly misclassified examples

![Semantic segmentation predictions table](https://mintcdn.com/coreweave-dbfa0e8d/3Dv_sw2eg8feUJlx/products/wandb/_media/tables_sample_predictions.png?fit=max\&auto=format\&n=3Dv_sw2eg8feUJlx\&q=85\&s=ee11673fdabf971d749abc5b4c8ea594)

The above image shows a table with semantic segmentation and custom metrics. View this table here in this [sample project from the W\&B ML Course](https://wandb.ai/av-team/mlops-course-001).

## How it works

A Table is a two-dimensional grid of data where each column has a single type of data. Tables support primitive and numeric types, as well as nested lists, dictionaries, and rich media types.

## Log a Table

Log a table with a few lines of code:

* [`wandb.init()`](https://docs.coreweave.com/products/wandb/ref/python/functions/init): Create a [run](https://docs.coreweave.com/products/wandb/runs.md) to track results.
* [`wandb.Table()`](https://docs.coreweave.com/products/wandb/ref/python/data-types/table): Create a new table object.
  * `columns`: Set the column names.
  * `data`: Set the contents of the table.
* [`run.log()`](https://docs.coreweave.com/products/wandb/ref/python/experiments/run#method-runlog): Log the table to save it to Weights & Biases.

```python theme={"system"}
import wandb

with wandb.init(project="table-test") as run:
    my_table = wandb.Table(columns=["a", "b"], data=[["a1", "b1"], ["a2", "b2"]])
    run.log({"Table Name": my_table})
```

## How to get started

* [Quickstart](https://docs.coreweave.com/products/wandb/tables/tables-walkthrough.md): Learn to log data tables, visualize data, and query data.
* [Tables Gallery](https://docs.coreweave.com/products/wandb/tables/tables-gallery.md): See example use cases for Tables.
