의 날짜 범위를 위한 도구가 있다. 예를 들어 아래 예제 시계열을 고정된 일 빈도로 변환하려면
resample
메서드를 사용하면 된다.
In
[
72
]:
ts
Out
[
72
]:
2011
-
01
-
02
-
0
.
204708
2011
-
01
-
05 0
.
478943
2011
-
01
-
07
-
0
.
519439
2011
-
01
-
08
-
0
.
555730
2011
-
01
-
10 1
.
965781
2011
-
01
-
12 1
.
393406
dtype
:
float64
In
[
73
]:
resampler
=
ts
.
resample
('
D
')
문자열
'
D
'
는 일 빈도로 해석된다.
빈도 간 변환이나 리샘플링은 큰 주제이므로 다음에 따로 다루도록 하겠다(
11
.
6
절 ‘리샘플링
과 빈도 변환’). 여기에서는 기본 빈도와 다중 빈도를 어떻게 사용하는지 살펴보도록 하자.
11.3.1
날짜 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.