Skip to content

(손*희) (강의노트 15장) 실습 내용과 강의 자료 간 dtype 불일치 #55

@cooldown24-7

Description

@cooldown24-7

15.2 시리즈 속성index 속성 부분의 설명 부분입니다

정수 인덱스가 아닌 경우는 행 인덱스로 사용된 값들로 구성된 Index 객체로 지정되며, 어레이처럼 dtype을 이용하여 인덱스로 사용된 값들의 자료형을 명시한다.

series1_count.index

Index(['첫째', '둘째', '셋째', '넷째', '다섯째'], dtype='str')

(중략)

series1.index

Index(['영', '일', '이', '삼', '사'], dtype='str')

해당 부분을 직접 작성하였을때 결과가 아래와 같습니다.

Image Image

해당 부분의 dtype이 다른 이유를 여쭙고 싶습니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions