BaseArtifact
implementation and give it a unique TYPE_NAME
as follows:DataArtifact
ModelArtifact
StatisticsArtifact
SchemaArtifact
pd.DataFrame
, we will take advantage of our materializers to figure our what kind of artifacts you are dealing with.PandasMaterializer
is only associated with pd.DataFrame
s however it has the option to interpret this dataframe either as a DataArtifact
, a StatisticsArtifact
or a SchemaArtifact
. As the DataArtifact
is the first element in the list, it has a priority and unless it is specified otherwise, all the pd.DataFrame
input and output annotations will yield a DataArtifact
.pd.DataFrame
s. In the step decorator, we explicitly handle output_1
as a SchemaArtifact
, whereas the output_2
will become a DataArtifact
due to the default behavior.