반응형
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 |
Tags
- Kotlin
- c#
- math
- gas
- Tkinter
- Mac
- dataframe
- matplotlib
- Python
- Redshift
- Excel
- SQL
- Google Excel
- array
- 파이썬
- Google Spreadsheet
- Github
- GIT
- PANDAS
- google apps script
- django
- Java
- string
- hive
- list
- Apache
- PostgreSQL
- PySpark
- numpy
Archives
- Today
- Total
달나라 노트
Python numpy : pi, nan, e (원주율, nan, 자연상수) 본문
728x90
반응형
import numpy as np
print(np.pi)
print(np.nan)
print(np.NaN)
print(np.NAN)
print(np.e)
-- Result
3.141592653589793
nan
nan
nan
2.718281828459045
numpy의 pi는 원주율(파이) 값을 return합니다.
numpy의 nan은 NaN값(null값)을 return합니다. NaN, NAN은 nan의 별칭입니다.
numpy의 e는 자연상수 값을 return합니다.
728x90
반응형
'Python > Python numpy' 카테고리의 다른 글
Python numpy : average, median (numpy로 list 속 평균과 중간값 구하기) (0) | 2021.07.26 |
---|---|
Python numpy : exp (자연상수와 지수) (0) | 2021.07.02 |
Python numpy : concatenate (array 합치기) (0) | 2021.03.29 |
Python numpy : sin, cos, tan (삼각함수 값 얻기) (0) | 2021.03.29 |
Python numpy : linspace (일정 간격으로 나눠진 array 생성하기, 구간 나누기) (0) | 2021.03.29 |
Comments