일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- python
- sql
- 쉘
- dataframe
- conda
- boost
- c++11
- awk
- ubuntu
- FIND
- 배열
- null
- Unity
- Shader
- with
- mysql
- C++
- expect
- SVN
- DROP
- sqlite
- List
- if
- SSH
- pi
- pandas
- autovacuum
- ngui
- postgresql
- Eclipse
Archives
- Today
- Total
목록DROP (3)
その先にあるもの…
[PYTHON] 데이터프레임 열 삭제
col1 col2 col3 col4 col5 0 1 2 3 4 5 1 1 2 3 4 5 2 1 2 4 5 6 3 7 8 9 10 11 4 12 13 14 15 16 del df['col1'] col2 col3 col4 col5 0 2 3 4 5 1 2 3 4 5 2 2 4 5 6 3 8 9 10 11 4 13 14 15 16 df.drop( ['col2', 'col3'], axis = 1('columns'), inplace=True ) col4 col5 0 4 5 1 4 5 2 5 6 3 10 11 4 15 16 df.drop( df.columns[ [1,3] ], axis = 'columns', inplace=True ) col1 col3 col5 0 1 3 5 1 1 3 5 2 1 4 6 3 7 9 ..
프로그래밍/Python
2020. 6. 26. 16:51
[PYTHON] pandas 행, 열 삭제
x1 x2 x3 x4 0 1 11 111 12 1 2 22 222 13 2 3 33 333 14 # 열(column) 삭제 del df['x1'] # axis = 1 세로 축 df = df.drop( 'x2', 1 ) df = df.drop( ['x3','x4'] , 1 ) # 행(row) 삭제 # 1번행 삭제 df = df.drop( 1, 0 ) # axis = 0 가로 축 # 0-,2번행 삭제 df = df.drop( [0,2], 0 )
프로그래밍/Python
2020. 5. 29. 15:32
[SQL] DROP
DROP DATABASE 데이터베이스명;
프로그래밍/SQL
2018. 3. 30. 10:24