Charles Lariviere
03/10/2021, 4:01 PMindex
to understand which column is the primary key (and uses it as the merge
key). It looks like my only option right now would be to exclude that “column” from the pandas dagster type, though I would prefer to have the dagster validation on it as well (i.e. non_nullable
, unique
, plus the nice-to-have documentation!)sandy
03/10/2021, 4:28 PMCharles Lariviere
03/10/2021, 4:31 PMsandy
03/10/2021, 4:34 PMMyPandasDataFrame = create_dagster_pandas_dataframe_type(...)
def validate_index(df):
...
MyPandasDataFrameWithIndexCheck = DagsterType(type_check_fn=lambda context, value: MyPandasDataFrame.type_check(context, value) and validate_index(value))
Charles Lariviere
03/10/2021, 7:43 PM