├── .github ├── CODEOWNERS └── pull_request_template.md ├── .gitignore ├── README.md ├── analyses ├── .gitkeep ├── driver_bets.sql ├── lap_time_analysis_python_worksheet.py └── pit_stops_analysis_python_worksheet.py ├── dbt_project.yml ├── macros ├── .gitkeep ├── convert_laptime.sql ├── macros.yml └── test_all_values_gte_zero.sql ├── models ├── column_definitions.md ├── core │ ├── core.yml │ ├── core_table_definitions.md │ ├── dim_circuits.sql │ ├── dim_constructors.sql │ ├── dim_drivers.sql │ ├── dim_races.sql │ ├── dim_seasons.sql │ ├── dim_status.sql │ ├── fct_constructor_results.sql │ ├── fct_constructor_standings.sql │ ├── fct_driver_standings.sql │ ├── fct_lap_times.sql │ ├── fct_pit_stops.sql │ ├── fct_qualifying.sql │ ├── fct_results.sql │ └── fct_sprint_results.sql ├── marts │ ├── aggregates │ │ ├── agg_fastest_pit_stops_by_constructor.py │ │ ├── agg_lap_times_moving_avg.py │ │ └── aggregates.yml │ ├── mrt.md │ ├── mrt.yml │ ├── mrt_lap_times_years.sql │ ├── mrt_pit_stops.sql │ ├── mrt_results.sql │ └── mrt_results_circuits.sql ├── ml │ ├── prep_encoding_splitting │ │ ├── covariate_encoding.py │ │ ├── encoding_mapping.py │ │ ├── hold_out_dataset_for_prediction.py │ │ ├── ml_data_prep.py │ │ └── training_testing_dataset.py │ └── training_and_prediction │ │ ├── apply_prediction_to_position.py │ │ └── train_model_to_predict_position.py ├── overview.md └── staging │ └── formula1 │ ├── f1_sources.yml │ ├── stage_model_descriptions.md │ ├── staging.yml │ ├── stg_circuits.sql │ ├── stg_constructor_results.sql │ ├── stg_constructor_standings.sql │ ├── stg_constructors.sql │ ├── stg_driver_standings.sql │ ├── stg_drivers.sql │ ├── stg_lap_times.sql │ ├── stg_pit_stops.sql │ ├── stg_qualifying.sql │ ├── stg_races.sql │ ├── stg_results.sql │ ├── stg_seasons.sql │ ├── stg_sprint_results.sql │ └── stg_status.sql ├── packages.yml ├── seeds └── .gitkeep ├── setup ├── existing_account_snowflake_grants.sql ├── pc_snowflake_grants.sql └── setup_script_s3_to_snowflake.sql ├── snapshots └── .gitkeep └── tests ├── .gitkeep ├── lap_times_moving_avg_assert_positive_or_null.sql └── macro_pit_stops_mean_is_positive.sql /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Owning team for this repo 2 | * @dbt-labs/solutions-architects 3 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | target/ 3 | dbt_packages/ 4 | logs/ 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/README.md -------------------------------------------------------------------------------- /analyses/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /analyses/driver_bets.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/analyses/driver_bets.sql -------------------------------------------------------------------------------- /analyses/lap_time_analysis_python_worksheet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/analyses/lap_time_analysis_python_worksheet.py -------------------------------------------------------------------------------- /analyses/pit_stops_analysis_python_worksheet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/analyses/pit_stops_analysis_python_worksheet.py -------------------------------------------------------------------------------- /dbt_project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/dbt_project.yml -------------------------------------------------------------------------------- /macros/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /macros/convert_laptime.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/macros/convert_laptime.sql -------------------------------------------------------------------------------- /macros/macros.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/macros/macros.yml -------------------------------------------------------------------------------- /macros/test_all_values_gte_zero.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/macros/test_all_values_gte_zero.sql -------------------------------------------------------------------------------- /models/column_definitions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/column_definitions.md -------------------------------------------------------------------------------- /models/core/core.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/core.yml -------------------------------------------------------------------------------- /models/core/core_table_definitions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/core_table_definitions.md -------------------------------------------------------------------------------- /models/core/dim_circuits.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/dim_circuits.sql -------------------------------------------------------------------------------- /models/core/dim_constructors.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/dim_constructors.sql -------------------------------------------------------------------------------- /models/core/dim_drivers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/dim_drivers.sql -------------------------------------------------------------------------------- /models/core/dim_races.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/dim_races.sql -------------------------------------------------------------------------------- /models/core/dim_seasons.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/dim_seasons.sql -------------------------------------------------------------------------------- /models/core/dim_status.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/dim_status.sql -------------------------------------------------------------------------------- /models/core/fct_constructor_results.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/fct_constructor_results.sql -------------------------------------------------------------------------------- /models/core/fct_constructor_standings.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/fct_constructor_standings.sql -------------------------------------------------------------------------------- /models/core/fct_driver_standings.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/fct_driver_standings.sql -------------------------------------------------------------------------------- /models/core/fct_lap_times.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/fct_lap_times.sql -------------------------------------------------------------------------------- /models/core/fct_pit_stops.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/fct_pit_stops.sql -------------------------------------------------------------------------------- /models/core/fct_qualifying.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/fct_qualifying.sql -------------------------------------------------------------------------------- /models/core/fct_results.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/fct_results.sql -------------------------------------------------------------------------------- /models/core/fct_sprint_results.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/core/fct_sprint_results.sql -------------------------------------------------------------------------------- /models/marts/aggregates/agg_fastest_pit_stops_by_constructor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/marts/aggregates/agg_fastest_pit_stops_by_constructor.py -------------------------------------------------------------------------------- /models/marts/aggregates/agg_lap_times_moving_avg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/marts/aggregates/agg_lap_times_moving_avg.py -------------------------------------------------------------------------------- /models/marts/aggregates/aggregates.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/marts/aggregates/aggregates.yml -------------------------------------------------------------------------------- /models/marts/mrt.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/marts/mrt.md -------------------------------------------------------------------------------- /models/marts/mrt.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/marts/mrt.yml -------------------------------------------------------------------------------- /models/marts/mrt_lap_times_years.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/marts/mrt_lap_times_years.sql -------------------------------------------------------------------------------- /models/marts/mrt_pit_stops.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/marts/mrt_pit_stops.sql -------------------------------------------------------------------------------- /models/marts/mrt_results.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/marts/mrt_results.sql -------------------------------------------------------------------------------- /models/marts/mrt_results_circuits.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/marts/mrt_results_circuits.sql -------------------------------------------------------------------------------- /models/ml/prep_encoding_splitting/covariate_encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/ml/prep_encoding_splitting/covariate_encoding.py -------------------------------------------------------------------------------- /models/ml/prep_encoding_splitting/encoding_mapping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/ml/prep_encoding_splitting/encoding_mapping.py -------------------------------------------------------------------------------- /models/ml/prep_encoding_splitting/hold_out_dataset_for_prediction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/ml/prep_encoding_splitting/hold_out_dataset_for_prediction.py -------------------------------------------------------------------------------- /models/ml/prep_encoding_splitting/ml_data_prep.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/ml/prep_encoding_splitting/ml_data_prep.py -------------------------------------------------------------------------------- /models/ml/prep_encoding_splitting/training_testing_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/ml/prep_encoding_splitting/training_testing_dataset.py -------------------------------------------------------------------------------- /models/ml/training_and_prediction/apply_prediction_to_position.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/ml/training_and_prediction/apply_prediction_to_position.py -------------------------------------------------------------------------------- /models/ml/training_and_prediction/train_model_to_predict_position.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/ml/training_and_prediction/train_model_to_predict_position.py -------------------------------------------------------------------------------- /models/overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/overview.md -------------------------------------------------------------------------------- /models/staging/formula1/f1_sources.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/f1_sources.yml -------------------------------------------------------------------------------- /models/staging/formula1/stage_model_descriptions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stage_model_descriptions.md -------------------------------------------------------------------------------- /models/staging/formula1/staging.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/staging.yml -------------------------------------------------------------------------------- /models/staging/formula1/stg_circuits.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_circuits.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_constructor_results.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_constructor_results.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_constructor_standings.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_constructor_standings.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_constructors.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_constructors.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_driver_standings.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_driver_standings.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_drivers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_drivers.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_lap_times.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_lap_times.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_pit_stops.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_pit_stops.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_qualifying.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_qualifying.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_races.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_races.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_results.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_results.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_seasons.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_seasons.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_sprint_results.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_sprint_results.sql -------------------------------------------------------------------------------- /models/staging/formula1/stg_status.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/models/staging/formula1/stg_status.sql -------------------------------------------------------------------------------- /packages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/packages.yml -------------------------------------------------------------------------------- /seeds/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /setup/existing_account_snowflake_grants.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/setup/existing_account_snowflake_grants.sql -------------------------------------------------------------------------------- /setup/pc_snowflake_grants.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/setup/pc_snowflake_grants.sql -------------------------------------------------------------------------------- /setup/setup_script_s3_to_snowflake.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/setup/setup_script_s3_to_snowflake.sql -------------------------------------------------------------------------------- /snapshots/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/lap_times_moving_avg_assert_positive_or_null.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/tests/lap_times_moving_avg_assert_positive_or_null.sql -------------------------------------------------------------------------------- /tests/macro_pit_stops_mean_is_positive.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dbt-labs/python-snowpark-formula1/HEAD/tests/macro_pit_stops_mean_is_positive.sql --------------------------------------------------------------------------------