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 | 31 |
Tags
- postgresql
- ssh
- nmap
- appium
- Jupyter Notebook
- ubuntu
- SWIFT
- Jupyter
- mysql
- STF
- kitura
- 28015
- postgres
- STF_PortForwarding
- appium server
- create table
- openpyxl
- insert
- Materials
- PYTHON
- ftp
- 실행권한
- sshpass
- port forwarding
- rethinkdb
- centos
- nGrinder
- perfect
- GoCD
- nohup
Archives
- Today
- Total
목록sql (1)
don't stop believing
간혹 엑셀에 있는 데이터를 DB에 넣어야 할 때가 있습니다. 많은 방법이 있지만 제가 선호하는 방법은 엑셀의 cell을 insert 문으로 변경해서 넣는 것을 선호합니다. python의 openpyxl을 이용해서 엑셀을 sql 파일로 변경해 보겠습니다. 우선 엑셀 형태는 영어사전입니다. 단어가 있고, 한글 뜻, 영어 뜻 3개의 column으로 구성되어 있습니다. openpyxl을 이용해 python 코드를 작성해 봅니다. # -*- coding:utf-8 -*- import openpyxl import codecs # 엑셀파일 열기 filename = "word-list-01.xlsm" book = openpyxl.load_workbook(filename) # 엑셀 파일의 첫번째 시트 추출하기 sheet..
Python/openpyxl
2017. 9. 25. 18:29