매년 새해 첫날의 기온 그래프 - 데이터 분석 기초
·
데이터 분석/데이터 분석 기초
새해 첫날의 기온 그래프 그리기 # 데이터 읽어오기 import csv f = open('./excel/seoul.csv') data = csv.reader(f) next(data) # 헤더 부분을 next() 함수를 사용해 제외 result = [] for row in data: if row[-1] != '': #최고 기온의 값이 존대한다면 result.append(float(row[-1])) # result 리스트에 최고 기온의 값 추가 print(len(result)) import pandas as pd data =pd.read_csv('./excel/seoul.csv',encoding='cp949') print(data.info()) data.head() RangeIndex: 40221 entri..