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
- pandas
- reinforcement learning
- statistics
- machine learning
- 논문
- rl
- Python Programming
- optimization
- Deep Learning
- 딥러닝
- David Silver
- 강화학습
- Jacobian Matrix
- 김성훈 교수님
- paper
- unity
- 판다스
- ML-Agent
- 리스트
- Series
- 사이킷런
- 데이터 분석
- 유니티
- 모두를 위한 RL
- convex optimization
- Hessian Matrix
- Laplacian
- Linear algebra
- neural network
- list
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