<Python>/[Numpy]

파이썬 기초 - numpy

9566 2021. 12. 3. 16:39
728x90
  1. np.random.rand(n) # 균일분포
  2. np.random.randn(n) # 정규분포
  3. np.linspace(0, 5, n) #0~5사이의 n개의 수
  4. np.minimum
  5. np.abs()
  6. np.sqrt
  7. np.square #제곱
  8. np.median(df['x1'])
  9. np.var
  10. np.min
  11. np.max
  12. np.std
  13. np.quntile(df['x1'], 0.25) # 0.5, 0.75
  14. np.mean # 결과를 정수로 → int(np.mean())
728x90