nada
[Python] Series 차원 확인 :: Series.shape 본문
Series 차원 확인 :: Series.shape
Reference
Pandas In Actionimport pandas as pd
calories_info = {
'Protein Bar' : 125,
'Salade' : 215,
'Chocolate Bar' : 406,
}
diet = pd.Series(calories_info)
diet
Protein Bar 125
Salade 215
Chocolate Bar 406
dtype: int64
diet.shape # diet의 차원
(3,)
'Python > Pandas' 카테고리의 다른 글
[Python] Series 정렬 (0) | 2023.08.16 |
---|---|
[Python] Series 유니크 값 (0) | 2023.08.16 |
[Python] Series 요소 개수 확인 :: Series.size (0) | 2023.08.15 |
[Python] Series 값의 유형 :: Series.dtype (0) | 2023.08.15 |
[Python] Series 인덱스 & 값 확인 :: Series.index | Series.values (0) | 2023.08.14 |