79529082

Date: 2025-03-23 14:26:27
Score: 1
Natty:
Report link

In this case, the document you are referring is outdated.

In the older version of Great Expectations (before v0.16), `get_context` was accessed differently.

In the latest versions, `get_context()` is provided under `great_expectations`, and not under `great_expectations.util` .

Below I have used the code from latest document of Great Expectation and It ran successfully without any error:

https://i.imgur.com/eIIBt4y.png

Example Code:

```

import datetime

import pandas as pd
from ruamel import yaml

from great_expectations.core.batch import RuntimeBatchRequest
from great_expectations import get_context
from great_expectations.data_context.types.base import (
DataContextConfig,
FilesystemStoreBackendDefaults,
)
```

Kindly go through the latest document of Greatest Expectations :

\[Great Expectations\](https://docs.greatexpectations.io/docs/core/set%5C%5C%5C_up%5C%5C%5C_a%5C%5C%5C_gx%5C%5C%5C_environment/create%5C%5C%5C_a%5C%5C%5C_data_context/)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pritam Kabiraj