when using `@check_output` does `hamilton` have th...
# hamilton-help
s
when using
@check_output
does
hamilton
have the ability to split the offending rows into two datasets?
Copy code
@check_output(positions_schema)
def final_dataframe_before_api_call(prepped_df: pd.DataFrame) -> pd.DataFrame:
    return prepped_df

def final_dataframe_validated(prepped_df: pd.DataFrame) -> pd.DataFrame:
    return prepped_df

def final_dataframe_violated(prepped_df: pd.DataFrame) -> pd.DataFrame:
    return prepped_df

def api_request_object(final_df_validated: pd.DataFrame) -> dict:
    return final_df_validated.to_dict(orient="records")

def post_request_to_api(api_request_object: dict) -> Any:
    ...
s
no. if you want this to happen I would create the Hamilton graph for it explicitly.
👍 1