cognite-sdk-python icon indicating copy to clipboard operation
cognite-sdk-python copied to clipboard

Update documentation to avoid `filters as flt, aggregations as aggs` and spell them out instead

Open andeplane opened this issue 1 year ago • 1 comments

Describe the bug In many of the examples in the documentation, we have imports like ... filters as flt. It looks inspired from import matplotlib.pyplot as plt, but doesn't add much value imo, and seems like it might make AI confused in code generation (also me!)

I'd like to update the documentation to import them with filters and aggregations spelled out.

andeplane avatar Feb 21 '24 10:02 andeplane

@andeplane What about rather always importing them explicitly? I.e. change all to from ... import And, Equals

haakonvt avatar Feb 21 '24 10:02 haakonvt