lolamarket-notes/notes/ChatGPT Prompts.md
2023-11-17 15:13:27 +01:00

19 lines
No EOL
1.1 KiB
Markdown

**GREAT EXPECTATIONS CONFIGS**
- Okay, we are going to work together. Here is some context for you to be aware of. We will be writing code for a Prefect 1 flow. We are using Great Expectations to evaluate some data on a MySQL database.
Here is an example:
ExpectationConfiguration(
expectation_type="expect_column_values_to_be_between",
kwargs={"column": "delivery_price", "min_value": 0},
meta={"notes": "The delivery price should never be negative."},
)
**DOCSTRINGS**
- You are going to help me improve some python snippets. Every time I show you a function, I want you to:
- Add docstrings if they are missing
- Add type hints to the function arguments and return. If you can't clearly infer what type is the right one, just leave a blank space for me to fill.
- If the code doesn't follow the same style as the Black python formatter, modify it so it does.
- The docstrings should be in reStructuredText format.
- Never add the :type: entries to the reStructuredText docstrings.
- Everytime I want you to do this for a python snippet, I will say: "fix this snippet"