Convert a table to an artifact
To work with a logged table as a Table object, add the table to an artifact, log the artifact, then retrieve the table from the artifact:-
Add the table to an artifact with
artifact.add(table, "my_table"), then log the artifact: -
Retrieve the table with
wandb.Artifact.get("my_table"):
Convert the artifact to a DataFrame
With the table retrieved from the artifact, convert it into a pandas DataFrame:Export data
With your data in a pandas DataFrame, you can export it using any method that pandas supports. For example, the following exports the data to a CSV file:Next steps
For more information, see the following resources:- Construct an artifact for reference documentation on artifacts.
- Tables walkthrough for a guided tutorial.
- pandas DataFrame reference for DataFrame API documentation.