EPL
-
[TWBX] 대학(원)생을 위한 TWBX Day 8대외활동 및 교육/TWBX 2022. 1. 14. 14:48
8일차 과제는 잉글랜드 프리미어리그 순위 대시보드 만들기였는데요! ESPN에서 제공하는 순위 테이블을 2003년부터 2021년까지 가져와 시각화를 진행했습니다. 시각화 하기에 앞서 수집한 데이터 원본을 보면 이렇게 하나의 열에 순위, 구단 약자, 구단명이 같이 적혀있는 것을 볼 수 있습니다. 이걸 다 나눠주기 위해 계산된 필드를 사용하여 각각의 열로 만들었습니다. 먼저 RANK라는 계산된 필드를 만들어서 정규표현식을 이용하여 추출하는 REGEXP_EXTRACT 함수로 숫자(순위)를 추출하고 같은 방식으로 문자만 추출하여 계산1이라는 계산된 필드를 만들었습니다. 문자만 추출한 계산1을 이용해 Club_abbr과 Club 필드를 만들었는데요, 계산1에서 앞에 3글자는 구단의 약어, 나머지는 구단 명이기 때문..