checks module¶
Utilities for validation during runtime.
assert_array_equal function¶
Raise exception if the first argument and the second argument have different metadata or values.
assert_columns_equal function¶
Raise exception if the first argument and the second argument have different columns.
assert_dict_sequence_valid function¶
Raise exception if a dict or any dict in a sequence of dicts has keys that are not in lvl_keys.
assert_dict_valid function¶
Raise exception if dict the argument has keys that are not in lvl_keys.
lvl_keys must be a list of lists, each corresponding to a level in the dict.
assert_dtype function¶
Raise exception if the argument is not of data type dtype.
assert_dtype_equal function¶
Raise exception if the first argument and the second argument have different data types.
assert_equal function¶
Raise exception if the first argument and the second argument are different.
assert_in function¶
Raise exception if the first argument is not in the second argument.
assert_index_equal function¶
Raise exception if the first argument and the second argument have different index.
assert_instance_of function¶
Raise exception if the argument is none of types types.
assert_iterable function¶
Raise exception if the argument is not an iterable.
assert_len_equal function¶
Raise exception if the first argument and the second argument have different length.
Does not transform arguments to NumPy arrays.
assert_level_not_exists function¶
Raise exception if index the argument has level level_name.
assert_meta_equal function¶
Raise exception if the first argument and the second argument have different metadata.
assert_ndim function¶
Raise exception if the argument has a different number of dimensions than ndims.
assert_not_instance_of function¶
Raise exception if the argument is one of types types.
assert_not_none function¶
Raise exception if the argument is None.
assert_not_subclass_of function¶
Raise exception if the argument is a subclass of classes classes.
assert_numba_func function¶
Raise exception if func is not Numba-compiled.
assert_sequence function¶
Raise exception if the argument is not a sequence.
assert_shape_equal function¶
Raise exception if the first argument and the second argument have different shapes along axis.
assert_subclass_of function¶
Raise exception if the argument is not a subclass of classes classes.
assert_subdtype function¶
Raise exception if the argument is not a sub data type of dtype.
assert_type_equal function¶
Raise exception if the first argument and the second argument have different types.
iskeyword function¶
x.contains(y) <==> y in x.
func_accepts_arg function¶
Check whether func accepts a positional or keyword argument with name arg_name.
is_any_array function¶
Check whether the argument is a NumPy array or a Pandas object.
is_bool function¶
Check whether the argument is a bool.
is_class function¶
Check whether the argument is types.
types can be one or multiple types, strings, or patterns of type Regex.
is_complex_iterable function¶
Check whether the argument is iterable but not a string or bytes object.
is_complex_sequence function¶
Check whether the argument is a sequence but not a string or bytes object.
is_deep_equal function¶
Check whether two objects are equal (deep check).
is_default_index function¶
Check whether index is a basic range.
is_dt function¶
Check whether the argument is a datetime object.
is_dt_like function¶
Check whether the argument is a datetime-like object.
is_equal function¶
Check whether two objects are equal.
is_float function¶
Check whether the argument is a float.
is_frame function¶
Check whether the argument is pd.DataFrame.
is_frequency function¶
Check whether the argument is a frequency object.
is_frequency_like function¶
Check whether the argument is a frequency-like object.
is_hashable function¶
Check whether the argument can be hashed.
is_index function¶
Check whether the argument is pd.Index.
is_index_equal function¶
Check whether indexes are equal.
If check_names is True, checks whether names are equal on top of pd.Index.equals.
is_instance_of function¶
Check whether the argument is an instance of types.
types can be one or multiple types or strings.
is_int function¶
Check whether the argument is an integer (and not a timedelta, for example).
is_iterable function¶
Check whether the argument is iterable.
is_mapping function¶
Check whether the arguments is a mapping.
is_mapping_like function¶
Check whether the arguments is a mapping-like object.
is_multi_index function¶
Check whether the argument is pd.MultiIndex.
is_namedtuple function¶
Check whether object is an instance of namedtuple.
is_notebook function¶
Check whether the code runs in a notebook.
Credit: https://stackoverflow.com/a/39662359
is_np_array function¶
Check whether the argument is a NumPy array.
is_np_scalar function¶
Check whether the argument is a NumPy scalar.
is_numba_enabled function¶
Check whether Numba is enabled globally.
is_numba_func function¶
Check whether the argument is a Numba-compiled function.
is_number function¶
Check whether the argument is a number.
is_pandas function¶
Check whether the argument is pd.Series, pd.Index, or pd.DataFrame.
is_record function¶
Check whether object is a NumPy record.
is_record_array function¶
Check whether the argument is a structured NumPy array.
is_sequence function¶
Check whether the argument is a sequence.
is_series function¶
Check whether the argument is pd.Series.
is_subclass_of function¶
Check whether the argument is a subclass of types.
types can be one or multiple types, strings, or patterns of type Regex.
is_td function¶
Check whether the argument is a timedelta object.
is_td_like function¶
Check whether the argument is a timedelta-like object.
is_time function¶
Check whether the argument is a time object.
is_time_like function¶
Check whether the argument is a time-like object.
is_valid_variable_name function¶
Check whether the argument is a valid variable name.
safe_assert function¶
Comparable class¶
Class representing an object that can be compared to another object.
Subclasses
equals method¶
Check two objects for (deep) equality.
Should accept the keyword arguments accepted by is_deep_equal().