csvkit으로 파일 합치기
SpotifyData_PopularityRank6.csv와 SpotifyData_PopularityRank7.csv는 파일 형식, 열 순서, 전체 스키마가 동일해요. 다만 하나는 순위 #6 노래 정보를, 다른 하나는 순위 #7 노래 정보를 담고 있어요. 두 파일을 위로 쌓는 방식으로 합쳐서 하나의 통합 파일로 만드세요.
이 연습은 강의의 일부입니다
셸에서의 데이터 처리
연습 안내
SpotifyData_PopularityRank6.csv와SpotifyData_PopularityRank7.csv를 쌓아 합치세요. 이때 출력 결과를 리디렉션하여SpotifyPopularity.csv라는 새 파일로 저장하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Stack the two files and save results as a new file
___ SpotifyData_PopularityRank6.csv SpotifyData_PopularityRank7.csv ___ SpotifyPopularity.csv
# Preview the newly created file
csvlook SpotifyPopularity.csv