일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- interface
- javascript
- git
- SSH
- java
- learning
- LIST
- mysql
- mariaDB
- DeepLearning
- ai
- Spring
- db
- centos
- Deep
- 함수
- Web
- Github
- error
- data
- Analysis
- framework
- Numpy
- Python
- Server
- 자바
- 인공지능
- Security
- Pattern
- Linux
- Today
- Total
목록Anaconda (4)
PostIT
# [Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 5 import numpy as np import matplotlib.pyplot as plt # 1 - Pyplot example x = np.arange(0,6,0.1) y = np.sin(x) plt.plot(x,y) plt.show() # 2 - Pyplot example a = np.arange(0, 6, 0.1) b1 = np.sin(a) b2 = np.cos(a) plt.plot(a, b1, label="sin") plt.plot(a, b2, linestyle="--", label="cos") # a axis name plt.xlabel("a") plt.ylabel("b") plt.title("..
# [Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 3import numpy as np arr = np.arange(0,11) arr2 = np.arange(0,11) arr array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])arr[8] 8# Slice arr[1:5] array([1, 2, 3, 4]) arr[0:5] array([0, 1, 2, 3, 4]) arr[0:5] = 100 arr array([100, 100, 100, 100, 100, 5, 6, 7, 8, 9, 10])arr2[3:7] = 100 arr2 array([ 0, 1, 2, 100, 100, 100, 100, 7, 8, 9, 10])arr = np.arang..
# [Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 2 import numpy as np from __future__ import division 5/2 2.5 arr1 = np.array([[1,2,3,4], [8,9,10,11]]) arr1 array([[ 1, 2, 3, 4], [ 8, 9, 10, 11]]) arr1 * arr1 array([[ 1, 4, 9, 16], [ 64, 81, 100, 121]]) arr1 - arr1 array([[0, 0, 0, 0], [0, 0, 0, 0]]) 1 / arr1 array([[ 1. , 0.5 , 0.33333333, 0.25 ], [ 0.125 , 0.11111111, 0.1 , 0.09090909]])..
# [Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 1 # [Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 1 import numpy as np list1 = [1,2,3,4] array1 = np.array(list1) array1 array([1, 2, 3, 4]) list2 = [11,22,33,44] lists = [list1,list2] array2 = np.array(lists) array2 array([[ 1, 2, 3, 4], [11, 22, 33, 44]]) array2.shape (2, 4) array2.shape (2, 4) array2.dtype dtype('int64') np.zeros(5..