hello! I am new to working with prefect artifacts ...
# prefect-cloud
h
hello! I am new to working with prefect artifacts and wanted to ask if there are any methods I can use to update the values in a single column of a prefect table artifact to use later in my script?
j
Prefect doesn’t provide a built-in artifact table method, if that’s what you’re looking for. However, if you’re using pandas or a similar library in an earlier step, you could take a single column of values and then use it later however you liked.
h
that makes sense, thanks! is there a way for me to use values saved in a pandas dataframe to create an updated artifact table?
j
You can use the pandas
to_dict
method to create a dictionary and Prefect’s
create_table_artifact
takes a list of dicts or a dict or lists. Docs here.