본문 바로가기

기록하는 습관

검색하기
기록하는 습관
프로필사진 Avalla

  • 분류 전체보기 (21)
    • Python (14)
      • Numpy (12)
    • SQL (7)
    • Visualization (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
  • SQL
  • 해커랭크
  • CONCATENATE
  • 논리배열
  • 표본추출
  • 넘파이
  • 랜덤샘플링
  • 배열추가
  • concat
  • npy
  • 배열형태변경
  • Python
  • 파이썬
  • 파일저장하기
  • 배열쪼개기
  • 배열연산
  • Revising the Select Query I
  • 배열나누기
  • reshape
  • ndarray
  • 배열자르기
  • 넘파이장점
  • 벡터연산
  • numpy
  • buit-in exception
  • 배열붙이기
  • SQL문제
  • Revising the Select Query II
  • 배열분리하기
  • fancyindexing
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록배열연산 (1)

기록하는 습관

[Numpy] 007. 배열 내 연산

import numpy as np 배열.sum(axis=축) 샘플 배열 생성 array = np.random.randint(0,6,(3,2,4)) array array([[[2, 1, 2, 4], [1, 2, 4, 0]], [[4, 4, 2, 0], [3, 1, 0, 3]], [[0, 2, 2, 5], [0, 5, 4, 3]]]) [[[2, 1, 2, 4], [1, 2, 4, 0]], [[4, 4, 2, 0], [3, 1, 0, 3]], [[0, 2, 2, 5], [0, 5, 4, 3]]] print( array.sum(axis=0) ) [[6 7 6 9] [4 8 8 6]] print( array.sum(axis=1) ) array([[3, 3, 6, 4], [7, 5, 2, 3], [0, 7, 6, ..

Python/Numpy 2023. 8. 8. 16:35
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바