Skip to content

topper-123/engarde

 
 

Repository files navigation

topper-123-Engarde

A fork of Engarde, a python package for defensive data analysis.

The differences between this fork and Engarde proper are:

  • renamed verify to verify_df.
  • Added two new functions in generic:
    • verify_columns. Verifies columns. E.g. checks.verify_columns(df, lambda x: (x > 0).all())
    • verify_rows. Verifies rows. E.g. checks.verify_rows(df, lambda row: row.A > row.B)
  • Deleted verify_all and verify_any. Basically I consider these less useful than verify_columns and verify_rows and I like that the API is small.
  • verify_columns and verify_rows functions are added to checks and decorators.
  • has_dtypes can accept functions that return True if the test is passd (typically the ones in pd.api.types, e.g. is_integer_dtype) and can accept strings from the allowed string output of pd.api.types.infer_dtypes.

Installation

  pip install topper-123-engarde

and then in your python code:

  import engarde

Further details

For details, see doc strings for relevant functions. For a tutorial, see Engarde's tutorial, but beware the differences.

About

A library for defensive data analysis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.6%
  • Other 0.4%