Skip to content

Instantly share code, notes, and snippets.

@khuyentran1401
Last active March 25, 2022 19:14
Show Gist options
  • Save khuyentran1401/ed9e492928b520ba4c54c578bc8f99bc to your computer and use it in GitHub Desktop.
Save khuyentran1401/ed9e492928b520ba4c54c578bc8f99bc to your computer and use it in GitHub Desktop.
from pandera import check_input
@check_input(schema)
def get_total_price(fruits: pd.DataFrame):
return fruits.price.sum()
get_total_price(fruits)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment