카테고리 없음

[0619] NUMPY

standingR 2024. 6. 19. 23:13

https://numpy.org/doc/stable/user/absolute_beginners.html#how-to-import-numpy

 

 

NumPy: the absolute basics for beginners — NumPy v1.26 Manual

NumPy: the absolute basics for beginners Welcome to the absolute beginner’s guide to NumPy! If you have comments or suggestions, please don’t hesitate to reach out! Welcome to NumPy! NumPy (Numerical Python) is an open source Python library that’s us

numpy.org

 

가장 기본이되는 narry에 대한 그림 설명 - https://numpy.org/

 

 

 

 

방학기간 동안 하루에 6챕터씩 공부할것

 

중요사항  Object = Data + Methods  # 절대 그냥 object = 객체라고 하지 말것!

 

The NumPy library contains multidimensional array and matrix data structures (you’ll find more information about this in later sections). It provides ndarray, a homogeneous n-dimensional array object, with methods to efficiently operate on it.

 

NumPy can be used to perform a wide variety of mathematical operations on arrays.

It adds powerful data structures / to Python that guarantee efficient calculations with arrays

 

and matrices and it supplies an enormous library of high-level mathematical functions that operate on these arrays and matrices.

 

더보기

넘파이의 라이브러리는 다차원의 배열과 행렬형태의 데이터 구조체를 제공합니다.(이것에 대해서는 이후 섹션에서 찾을 수 있다.)

넘파이는 ndarray라는 것을 제공해, 그건 동종의(동질적인)n차원의 배열의 object를 효율적인 다양한 작동과 함께

넘파이는  배열에대한, 수학적 연산을 사용하는 데 사용 될수가 있다.

Python에 강력한 데이터 구조를 추가하여 어레이와 매트릭스를 통해 효율적인 계산을 보장하고 이러한 어레이와 매트릭스에서 작동하는 고급 수학 함수의 방대한 라이브러리를 제공합니다

(그리고 넘파이는 파이썬에서 강력한 배이터 구조체를 추가한다 / 배열의 효율적인 계산을 보장하면서 )

 

- provides 제공, homogeneous 동종의, operation 연산

 

 

Numpy 설치 

 

-you have conda

conda install numpy

or

pip install numpy

 

How to import NumPy

import numpy as np

We shorten the imported name to np for better readability of code using NumPy. This is a widely adopted convention that makes your code more readable for everyone working on it. We recommend to always use import numpy as np.

 

- 여기서의 np는 npNumpy를 쉽게 사용하기 위해 np로사용하는 것이다. 이는 작업하는 사람들이 코드를 더 쉽게 읽을 수 있도록 채택된 규칙이다.