def titanic_profiler_evrs_with_exception():
    with open(
            file_relative_path(
                __file__,
                "./fixtures/BasicDatasetProfiler_evrs_with_exception.json"),
    ) as infile:
        return expectationSuiteValidationResultSchema.load(json.load(infile))
def datetime_column_evrs():
    """hand-crafted EVRS for datetime columns"""
    with open(
            file_relative_path(
                __file__, "../fixtures/datetime_column_evrs.json")) as infile:
        return expectationSuiteValidationResultSchema.load(
            json.load(infile, object_pairs_hook=OrderedDict))
def titanic_profiler_evrs():
    with open(
            file_relative_path(
                __file__,
                "./fixtures/BasicDatasetProfiler_evrs.json")) as infile:
        return expectationSuiteValidationResultSchema.load(
            json.load(infile, object_pairs_hook=OrderedDict))
Example #4
0
def titanic_profiled_name_column_evrs():
    # This is a janky way to fetch expectations matching a specific name from an EVR suite.
    # TODO: It will no longer be necessary once we implement ValidationResultSuite._group_evrs_by_column
    from great_expectations.render.renderer.renderer import Renderer

    with open(
            file_relative_path(
                __file__,
                "./fixtures/BasicDatasetProfiler_evrs.json"), ) as infile:
        titanic_profiled_evrs_1 = expectationSuiteValidationResultSchema.load(
            json.load(infile))

    evrs_by_column = Renderer()._group_evrs_by_column(titanic_profiled_evrs_1)
    name_column_evrs = evrs_by_column["Name"]

    return name_column_evrs