Study/ML, DL with Python
4. numpy 자료형(data type) - int, float, complex 그 외 함수(dtype, arange)
응굥
2020. 1. 12. 17:46
- numpy 자료형(data type)
int, float, bool(True/False)
- 정수형(int : integer)
부호가 있는 정수형 : int8(-127~127), int16(-32768~32767), int32, int64
부호가 없는 정수형 : uint(Unsigned integer) : uint8(0~255), uint16(0~65535), uint23, uint64
- 실수형(float)
float16, float32, float64
- 복소수형(complex)
complex64 : 두 개의 32비트 부동소수점으로 표시되는 복소수
complex128 : 두 개의 64비트 부동소수점으로 표시되는 복소수
- 데이터의 타입을 알아보기 위한 함수 : dtype
arange()
728x90
728x90