You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This issue tackles several problems with the related theme of producing more informative error messages in Checks, see discussion in #429.
Describe the solution you'd like
The outcome of the discussion is described in #429 (comment)
refactor groupby behavior to expect a pandas Groupby object (breaking change)
add agg kwarg to Check that simply wraps DataFrame.agg and Series.agg depending on the schema context
support callback function for the error kwarg:
CheckObj=Union[pd.Series, pd.DataFrame, pd.Groupby] # series or dataframe can be the output of `agg` operationdeferror_callback(check_obj: CheckObj, check_output) ->str:
returnf"check failed with values {check_obj}, check output: {check_output}"
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
This issue tackles several problems with the related theme of producing more informative error messages in
Check
s, see discussion in #429.Describe the solution you'd like
The outcome of the discussion is described in #429 (comment)
groupby
behavior to expect a pandasGroupby
object (breaking change)agg
kwarg toCheck
that simply wraps DataFrame.agg and Series.agg depending on the schema contexterror
kwarg:The text was updated successfully, but these errors were encountered: