-
-
Notifications
You must be signed in to change notification settings - Fork 128
Add macro for group_mean_continuity_check #4092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a question: you mention pct change between successive groups. This suggests the group column is inherently ordered, right? Is this something you would generally expect to be the case?
I guess what I'm saying is: to me it is not intuitive that a "group" is always an ordered thing. Maybe this variable name should be changed to something that makes it clear that it is both a partition and something that has an inherent order to it
I'm inclined to say that this test should remain a column-level test (rather than a table test as in #4116). I think this because it doesn't have to do with the relationship between columns in a table or the relationship between a table and another table. For that reason, I think it makes sense to have tests that implicate a particular column be column level (unless, perhaps, it's something that implicates every single column in a table). But this to me feels like it should remain at the column-level. |
@aesharpe even though 2 of the 3 arguments for the test are intended to be identical across all the column tests within a table? and if they ever change, we have to update N lines instead of just one? I can live with that; I just want to make sure the impact is clear before we decide. |
Yes, this is good clarification. I think it's important to be able to customize things like |
…a923__cooling_system_information
…_check. Also documentation.
e0da49a
to
4c8c677
Compare
…ration_maintenance
Overview
Three tables require a
group_mean_continuity_check
, which does the following:This PR contains a draft for a possible implementation.
What did you change?
group_mean_continuity_check(group_column, max_pct_change)
_core_eia923__cooling_system_information
, using columns and thresholds fromtransform/eia923.py
Debatable design choices