Skip to content

Instantly share code, notes, and snippets.

@elijahbenizzy
Created September 2, 2023 22:54
Show Gist options
  • Save elijahbenizzy/228ddd1905178540c7b51f2af9e93965 to your computer and use it in GitHub Desktop.
Save elijahbenizzy/228ddd1905178540c7b51f2af9e93965 to your computer and use it in GitHub Desktop.
@config.when(mode="batch")
def age_mean__batch(age: pd.Series) -> float:
return age.mean()
@config.when(mode="batch")
def age_stddev__batch(age: pd.Series) -> float:
return age.std()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment