nada
[Python] Series 값의 유형 :: Series.dtype 본문
Series 값의 유형 :: Series.dtype
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.dtype # diet의 값 데이터 유형
dtype('int64')
'Python > Pandas' 카테고리의 다른 글
[Python] Series 차원 확인 :: Series.shape (0) | 2023.08.15 |
---|---|
[Python] Series 요소 개수 확인 :: Series.size (0) | 2023.08.15 |
[Python] Series 인덱스 & 값 확인 :: Series.index | Series.values (0) | 2023.08.14 |
[Python] Series 행 반환 :: Series.head( ) | tail( ) | sample( ) (0) | 2023.08.10 |
[Python] JSON 파일 불러오기 :: pd.read_json( ) (0) | 2023.08.09 |