Skip to content

Commit

Permalink
Merge pull request #100 from dfe-analytical-services/10Oct24LiveData
Browse files Browse the repository at this point in the history
Updating dashboard with data for 10th Oct publication
  • Loading branch information
tom-curd authored Oct 10, 2024
2 parents 40899b3 + e1aea80 commit f79b7eb
Show file tree
Hide file tree
Showing 46 changed files with 19,398 additions and 7,062 deletions.
9,804 changes: 7,372 additions & 2,432 deletions data/EES_daily_data.csv

Large diffs are not rendered by default.

1,966 changes: 1,477 additions & 489 deletions data/EES_weekly_data.csv

Large diffs are not rendered by default.

982 changes: 491 additions & 491 deletions data/EES_ytd_data.csv

Large diffs are not rendered by default.

12,774 changes: 9,351 additions & 3,423 deletions data/attendance_data_dashboard.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion global.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ google_analytics_key <- "DG7P4WLB0Y"

#### SECTION 1 - date filters ####
start_date <- as.Date("2024-09-09")
end_date <- as.Date("2024-09-13")
end_date <- as.Date("2024-09-27")
# funeral_date <- as.Date("2022-09-19")
# strike_date_1 <- as.Date("2023-02-01")
# strike_date_2 <- as.Date("2023-03-15")
Expand Down
2 changes: 1 addition & 1 deletion server.R
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ server <- function(input, output, session) {
mutate(proportion_schools_count = (num_schools / total_num_schools) * 100)

# paste0("For this breakdown, in the week prior to half term there were ", count_prop_week %>% pull(proportion_schools_count) %>% mean(na.rm = TRUE) %>% round(digits = 0), "% of schools opted-in, though this has varied throughout the year-to-date. This figure is not shown for the latest week due to half-term impacting upon number of schools reporting.")
paste0("This number is approximately ", count_prop_week %>% pull(proportion_schools_count) %>% mean(na.rm = TRUE) %>% round(digits = 0), "% of the number of schools participating in the School Census. From the 19 August 2024 it became mandatory for schools to share attendance data with the DfE. As more schools share their data, the number of schools reporting may change over time.")
paste0("This number is approximately ", count_prop_week %>% pull(proportion_schools_count) %>% mean(na.rm = TRUE) %>% round(digits = 0), "% of the number of schools participating in the School Census. From the start of the 2024/25 academic year, it became mandatory for schools to share attendance data with the DfE. As more schools share their data, the number of schools reporting may change over time.")
})

# Proportion of schools in census figures are generated from - year to date
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/UI_tests/001.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"ts_choice": "latestweeks"
},
"output": {
"daily_schools_count": "20,483 schools provided information on the latest full day of data, i.e. 2024-09-13",
"headline_update_date": "Data was last updated on 2024-09-26.",
"homepage_update_dates": "Data was last updated on 2024-09-26 and is next expected to be updated on 2024-10-10. The latest full week of data was the week commencing 2024-09-09."
"daily_schools_count": "20,703 schools provided information on the latest full day of data, i.e. 2024-09-27",
"headline_update_date": "Data was last updated on 2024-10-10.",
"homepage_update_dates": "Data was last updated on 2024-10-10 and is next expected to be updated on 2024-10-24. The latest full week of data was the week commencing 2024-09-23."
}
}
Binary file removed tests/testthat/_snaps/UI_tests/001_.new.png
Binary file not shown.
Binary file modified tests/testthat/_snaps/UI_tests/001_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 39 additions & 39 deletions tests/testthat/_snaps/UI_tests/002.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"automargin": true,
"title": "Date",
"tickvals": [
"2024-09-09",
"2024-09-10",
"2024-09-11",
"2024-09-12",
"2024-09-13"
"2024-09-23",
"2024-09-24",
"2024-09-25",
"2024-09-26",
"2024-09-27"
],
"zeroline": true,
"zerolinewidth": 2,
Expand Down Expand Up @@ -107,18 +107,18 @@
"mode": "markers+lines",
"type": "scatter",
"x": [
"2024-09-09",
"2024-09-10",
"2024-09-11",
"2024-09-12",
"2024-09-13"
"2024-09-23",
"2024-09-24",
"2024-09-25",
"2024-09-26",
"2024-09-27"
],
"y": [
3.9247590143978401,
3.6537576091408601,
3.4886795780858599,
3.6549612508865899,
4.4333424741676897
4.8823189638814002,
4.1931951716405402,
3.97803637706052,
4.0875191837073297,
5.0224854808397996
],
"line": {
"color": "#12436D"
Expand Down Expand Up @@ -151,18 +151,18 @@
"mode": "markers+lines",
"type": "scatter",
"x": [
"2024-09-09",
"2024-09-10",
"2024-09-11",
"2024-09-12",
"2024-09-13"
"2024-09-23",
"2024-09-24",
"2024-09-25",
"2024-09-26",
"2024-09-27"
],
"y": [
2.19887917356407,
2.1684250667344598,
2.1082301478110601,
2.3113877539905698,
2.9285361629650999
3.3860275795053401,
2.9520334970373701,
2.7589234989709799,
2.8365893787935299,
3.4908292450428799
],
"line": {
"color": "#28A197"
Expand Down Expand Up @@ -195,18 +195,18 @@
"mode": "markers+lines",
"type": "scatter",
"x": [
"2024-09-09",
"2024-09-10",
"2024-09-11",
"2024-09-12",
"2024-09-13"
"2024-09-23",
"2024-09-24",
"2024-09-25",
"2024-09-26",
"2024-09-27"
],
"y": [
1.7258798408337701,
1.4853325424063999,
1.38044943027481,
1.34357349689602,
1.50480631120259
1.4962913843760599,
1.24116167460317,
1.2191128780895399,
1.25092980491379,
1.5316562357969301
],
"line": {
"color": "#F46A25"
Expand Down Expand Up @@ -349,9 +349,9 @@
}
]
},
"headline_bullet_title_nat": "Headline figures for the latest week - 2024-09-09 to 2024-09-13: primary state-funded school attendance at national level",
"weekly_absence_rate_nat": "3.8% of sessions were recorded as absence",
"weekly_attendance_rate_nat": "96.2% of sessions were recorded as attending",
"weekly_illness_rate_nat": "1.7% of sessions were recorded as illness"
"headline_bullet_title_nat": "Headline figures for the latest week - 2024-09-23 to 2024-09-27: primary state-funded school attendance at national level",
"weekly_absence_rate_nat": "4.4% of sessions were recorded as absence",
"weekly_attendance_rate_nat": "95.6% of sessions were recorded as attending",
"weekly_illness_rate_nat": "2.4% of sessions were recorded as illness"
}
}
Binary file removed tests/testthat/_snaps/UI_tests/002_.new.png
Binary file not shown.
Binary file modified tests/testthat/_snaps/UI_tests/002_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 39 additions & 39 deletions tests/testthat/_snaps/UI_tests/003.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"automargin": true,
"title": "Date",
"tickvals": [
"2024-09-09",
"2024-09-10",
"2024-09-11",
"2024-09-12",
"2024-09-13"
"2024-09-23",
"2024-09-24",
"2024-09-25",
"2024-09-26",
"2024-09-27"
],
"zeroline": true,
"zerolinewidth": 2,
Expand Down Expand Up @@ -107,18 +107,18 @@
"mode": "markers+lines",
"type": "scatter",
"x": [
"2024-09-09",
"2024-09-10",
"2024-09-11",
"2024-09-12",
"2024-09-13"
"2024-09-23",
"2024-09-24",
"2024-09-25",
"2024-09-26",
"2024-09-27"
],
"y": [
5.3990299431421001,
5.5300875052247003,
5.4854570002846303,
5.7015095634768098,
6.4822190383304399
7.76122882939727,
7.4201865809100704,
7.1684483206127796,
7.3464760835399296,
8.5717588200903307
],
"line": {
"color": "#12436D"
Expand Down Expand Up @@ -151,18 +151,18 @@
"mode": "markers+lines",
"type": "scatter",
"x": [
"2024-09-09",
"2024-09-10",
"2024-09-11",
"2024-09-12",
"2024-09-13"
"2024-09-23",
"2024-09-24",
"2024-09-25",
"2024-09-26",
"2024-09-27"
],
"y": [
2.7249820939443601,
2.98390547107434,
3.0298854710099499,
3.2336313063432001,
3.77897465187056
5.00635418584256,
4.8561411627745397,
4.5920909616635504,
4.6802168156321899,
5.4730975484025004
],
"line": {
"color": "#28A197"
Expand Down Expand Up @@ -195,18 +195,18 @@
"mode": "markers+lines",
"type": "scatter",
"x": [
"2024-09-09",
"2024-09-10",
"2024-09-11",
"2024-09-12",
"2024-09-13"
"2024-09-23",
"2024-09-24",
"2024-09-25",
"2024-09-26",
"2024-09-27"
],
"y": [
2.67404784919774,
2.54618203415035,
2.4555715292746898,
2.46787825713362,
2.7032443864598799
2.75487464355471,
2.5640454181355299,
2.5763573589492301,
2.6662592679077401,
3.0986612716878299
],
"line": {
"color": "#F46A25"
Expand Down Expand Up @@ -349,9 +349,9 @@
}
]
},
"headline_bullet_title_nat": "Headline figures for the latest week - 2024-09-09 to 2024-09-13: secondary state-funded school attendance at national level",
"weekly_absence_rate_nat": "5.7% of sessions were recorded as absence",
"weekly_attendance_rate_nat": "94.3% of sessions were recorded as attending",
"weekly_illness_rate_nat": "2.1% of sessions were recorded as illness"
"headline_bullet_title_nat": "Headline figures for the latest week - 2024-09-23 to 2024-09-27: secondary state-funded school attendance at national level",
"weekly_absence_rate_nat": "7.6% of sessions were recorded as absence",
"weekly_attendance_rate_nat": "92.4% of sessions were recorded as attending",
"weekly_illness_rate_nat": "3.7% of sessions were recorded as illness"
}
}
Binary file removed tests/testthat/_snaps/UI_tests/003_.new.png
Binary file not shown.
Binary file modified tests/testthat/_snaps/UI_tests/003_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 54 additions & 14 deletions tests/testthat/_snaps/UI_tests/004.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
],
"automargin": true,
"title": "Week commencing",
"tickvals": "2024-09-09",
"tickvals": [
"2024-09-09",
"2024-09-16",
"2024-09-23"
],
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "Grey",
Expand Down Expand Up @@ -103,8 +107,16 @@
{
"mode": "markers+lines",
"type": "scatter",
"x": "2024-09-09",
"y": 5.7187917645645197,
"x": [
"2024-09-09",
"2024-09-16",
"2024-09-23"
],
"y": [
5.7322366341294799,
6.9464584936490503,
7.6454306262548402
],
"line": {
"color": "#12436D"
},
Expand All @@ -115,7 +127,11 @@
}
},
"name": "Overall absence rate",
"hovertemplate": "%{y:.1f}%",
"hovertemplate": [
"%{y:.1f}%",
"%{y:.1f}%",
"%{y:.1f}%"
],
"error_y": {
"color": "rgba(255,127,14,1)"
},
Expand All @@ -129,8 +145,16 @@
{
"mode": "markers+lines",
"type": "scatter",
"x": "2024-09-09",
"y": 3.14959612946407,
"x": [
"2024-09-09",
"2024-09-16",
"2024-09-23"
],
"y": [
3.2404831522272799,
4.3991725036035803,
4.9167664295791296
],
"line": {
"color": "#28A197"
},
Expand All @@ -141,7 +165,11 @@
}
},
"name": "Authorised absence rate",
"hovertemplate": "%{y:.1f}%",
"hovertemplate": [
"%{y:.1f}%",
"%{y:.1f}%",
"%{y:.1f}%"
],
"error_y": {
"color": "rgba(44,160,44,1)"
},
Expand All @@ -155,8 +183,16 @@
{
"mode": "markers+lines",
"type": "scatter",
"x": "2024-09-09",
"y": 2.5691956351004501,
"x": [
"2024-09-09",
"2024-09-16",
"2024-09-23"
],
"y": [
2.4917534819022,
2.5472859900454798,
2.7286641966756999
],
"line": {
"color": "#F46A25"
},
Expand All @@ -167,7 +203,11 @@
}
},
"name": "Unauthorised absence rate",
"hovertemplate": "%{y:.1f}%",
"hovertemplate": [
"%{y:.1f}%",
"%{y:.1f}%",
"%{y:.1f}%"
],
"error_y": {
"color": "rgba(214,39,40,1)"
},
Expand Down Expand Up @@ -292,9 +332,9 @@
}
]
},
"headline_bullet_title_nat": "Headline figures for the year to date - 2024-09-09 to 2024-09-13: secondary state-funded school attendance at national level",
"ytd_absence_rate_nat": "5.7% of sessions were recorded as absence",
"ytd_attendance_rate_nat": "94.3% of sessions were recorded as attending",
"ytd_illness_rate_nat": "2.1% of sessions were recorded as illness"
"headline_bullet_title_nat": "Headline figures for the year to date - 2024-09-09 to 2024-09-27: secondary state-funded school attendance at national level",
"ytd_absence_rate_nat": "6.8% of sessions were recorded as absence",
"ytd_attendance_rate_nat": "93.2% of sessions were recorded as attending",
"ytd_illness_rate_nat": "3% of sessions were recorded as illness"
}
}
Binary file removed tests/testthat/_snaps/UI_tests/004_.new.png
Binary file not shown.
Binary file modified tests/testthat/_snaps/UI_tests/004_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f79b7eb

Please sign in to comment.