DOMDOM
0posts
today
total
personal posts · since 2021

Fragments
of a day.

A small notebook for slow moments slipping by.

2023 IT Creator
2024 Food Creator
2025 News Creator
2026 News Creator

Latest Posts최근

tistory view

Back to Home

[python] numpy의 데이터타입을 기본 데이터타입으로 변경하기

728x90
반응형

 

그냥 변수 뒤에 .item() 만 붙여주면 돼요.

아래는 제가 numpy.float64형을 float형으로 바꿔본 예제입니다.

float뿐만 아니라 nan, int 등등 모든 데이터타입이 변경됩니다!

 

728x90
반응형

Comments

Thanks for staying up late.

keep wandering · keep listening