면 빈도에 관한 정보도 저장하며 시간대 변환을 하는 방법과 다른 종류의 조작을 하는 방법도 포
함하고 있다. 자세한 내용은 차후에 다루도록 하겠다.
11.2.1
색인, 선택, 부분 선택
시계열은 라벨에 기반해서 데이터를 선택하고 인덱싱할 때
pandas
.
Series
와 동일하게 동작
한다.
In
[
48
]:
stamp
=
ts
.
index
[
2
]
In
[
49
]:
ts
[
stamp
]
Out
[
49
]:
-
0
.
51943871505673811
해석할 수 있는 날짜를 문자열로 넘겨서 편리하게 사용할 수 있다.
In
[
50
]:
ts
['
1
/
10
/
2011
']
Out
[
50
]:
1
.
9657805725027142
In
[
51
]:
ts
['
20110110
']
Out
[
51
]:
1
.
9657805725027142
긴 시계열에서는 연을 넘기거나 연, ...
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.