Skip to content

topper-123/engarde

This branch is 19 commits ahead of, 11 commits behind engarde-dev/engarde:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1263fea · Sep 8, 2017
Aug 9, 2015
Dec 27, 2016
Sep 8, 2017
Jul 11, 2015
Jul 8, 2017
Jul 10, 2015
May 25, 2017
Jul 8, 2015
May 26, 2017
May 12, 2015
Dec 27, 2016
Jul 3, 2017
Jun 24, 2017
Jul 10, 2015
Jul 2, 2017
Jul 10, 2015

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%