문제 주어진 데이터(basic2.csv)에서 주 단위 Sales의 합계를 구하고, 가장 큰 값을 가진 주와 작은 값을 가진 주의 차이를 구하시오(절대값) 데이터셋 : basic2.csv 풀이 import pandas as pd df = pd.read_csv("../input/bigdatacertificationkr/basic2.csv", parse_dates=['Date'], index_col=0) df.head() df["sale2"]=df["Sales"].resample("W").sum() df["sale2"].max()-df["sale2"].min() 코드사용 resample : 주간별 샘플링...
T1-22. Time-Series4 (Weekly data)에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.