Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Numpy
- HTML모드
- window원격
- 배열비교
- 에러
- numpy함수
- 덱북선
- 주피터노트북티스토리
- os.path
- 파이썬
- HTML티스토리
- numpy기초
- 파이썬라이브러리
- Python
- 티스토리HTML모드
- wsl
- np함수
- 픽스팟
- webScrapper
- 파이썬가상환경
- cuda설치
- numpy배열
- 사용자 계정제한
- ubuntu
- 넘파이
- 원격데스크톱에러
- error 에러
- 넘파이공부
- numpy배열정의
- CUDA
Archives
- Today
- Total
목록배열비교 (1)
끄적끄적 개발일기
[Numpy] numpy 배열의 비교, 자주쓰이는 함수 (+ NaN과 None)
열이 같은 배열과의 비교 행의 개수가 달라도 열이 같으면 True값이 반환된다. import numpy as np A1 = np.ones((3, 3)) #array([[1., 1., 1.], # [1., 1., 1.], # [1., 1., 1.]]) A2 = np.ones((3, 3)) #array([[1., 1., 1.], # [1., 1., 1.], # [1., 1., 1.]]) B = np.ones(3) #array([1., 1., 1.]) A1==B #array([[ True, True, True], # [ True, True, True], # [ True, True, True]]) A2==B #array([[ True, True, True], # [ True, True, True], # [ Tr..
HOME/python
2022. 2. 11. 21:54