Created
April 16, 2024 05:55
-
-
Save lightle/26b5b208f28c31abfd0560fd4d978c13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def select_all_filter_by(df, filter_column, filter_value): | |
return df.filter(f"{filter_column}='{filter_value}'") | |
def model(dbt, session): | |
orders_df = dbt.ref('clean_orders') | |
return select_all_filter_by(orders_df, 'state', 'WA') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment