Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-python-sdk-testing.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Description
The Table class used to display and analyze tabular data. Unlike traditional spreadsheets, Tables support numerous types of data: scalar values, strings, numpy arrays, and most subclasses ofwandb.data_types.Media.
This means you can embed Images, Video, Audio, and other sorts of rich, annotated media
directly in Tables, alongside other traditional scalar values.
This class is the primary class used to generate W&B Tables
https://docs.wandb.ai/models/tables
Args:
- columns:
- data:
- rows:
- dataframe:
- dtype:
- optional:
- allow_mixed_types:
- log_mode:
Methods:
add_column
Adds a column of data to the table.add_computed_columns
Adds one or more computed columns based on existing data.add_data
Adds a new row of data to the table. The maximum amount ofrows in a table is determined bywandb.Table.MAX_ARTIFACT_ROWS.
The length of the data should match the length of the table column.
add_row
Deprecated. UseTable.add_data method instead.
captions
cast
Casts a column to a specific data type. This can be one of the normal python classes, an internal W&B type, or an example object, like an instance of wandb.Image or wandb.Classes.file_is_set
get_column
Retrieves a column from the table and optionally converts it to a NumPy object.get_dataframe
Returns apandas.DataFrame of the table.
get_index
Returns an array of row indexes for use in other tables to create links.init_from_json
Initialize aWBValue from a JSON blob based on the class that created it.
Looks through all subclasses and tries to match the json obj with the class
which created it. It will then call that subclass’ from_json method.
Importantly, this function will set the return object’s source_artifact
attribute to the passed in source artifact. This is critical for artifact
bookkeeping. If you choose to create a wandb.Value via it’s from_json method,
make sure to properly set this artifact_source to avoid data duplication.
is_bound
path_is_reference
to_data_array
Convert the object to a list of primitives representing the underlying data.type_mapping
Return a map from_log_type to subclass. Used to lookup correct types for deserialization.