Convert a table to an artifact
First, add the table to an artifact and log it, then retrieve the table as aTable object you can manipulate. Use artifact.add(table, "my_table") to add the table to the artifact and artifact.get("my_table") to retrieve it later:
Convert the artifact to a DataFrame
With the table retrieved from the artifact, convert it into a pandas DataFrame so that you can use DataFrame operations:Export data
With your data in a 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.