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
- neural network
- Linear algebra
- Python Programming
- paper
- 모두를 위한 RL
- 강화학습
- 리스트
- 유니티
- 논문
- ML-Agent
- unity
- 사이킷런
- rl
- Laplacian
- Deep Learning
- statistics
- 김성훈 교수님
- optimization
- Series
- list
- 판다스
- David Silver
- machine learning
- pandas
- Hessian Matrix
- 데이터 분석
- Jacobian Matrix
- reinforcement learning
- 딥러닝
- convex optimization
Archives
RL Researcher
08. 판다스(Pandas) - DataFrame 생성 본문
1. DataFrame 생성(dictionary로 부터 생성)
-
dict의 key -> column
data = {'a' : 100, 'b' : 200, 'c' : 300}
pd.DataFrame(data, index=['x', 'y', 'z'])
data = {'a' : [1, 2, 3], 'b' : [4, 5, 6], 'c' : [10, 11, 12]}
pd.DataFrame(data, index=[0, 1, 2])
2. Series로 부터 생성
-
각 Series의 인덱스 -> column
a = pd.Series([100, 200, 300], ['a', 'b', 'd'])
b = pd.Series([101, 201, 301], ['a', 'b', 'k'])
c = pd.Series([110, 210, 310], ['a', 'b', 'c'])
pd.DataFrame([a, b, c], index=[100, 101, 102])
'AI Basic > Pandas' 카테고리의 다른 글
07. 판다스(Pandas) - DataFrame 구조 (0) | 2021.01.04 |
---|---|
06. 판다스(Pandas) - DataFrame (0) | 2021.01.04 |
05. 판다스(Pandas) - Series 값 변경, Slicing (0) | 2021.01.04 |
04. 판다스(Pandas) - Series boolean selection 활용 (0) | 2021.01.03 |
03.판다스(Pandas) - Series 데이터 연산 (0) | 2021.01.03 |
Comments