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
- MySQL
- Colab
- jsonlines
- 텐서플로자격증
- vscode
- pandas
- TensorflowDeveloperCertificate
- iterrows
- session-basedRecommendation
- Python
- sshtunnel
- gluonnlp
- VScodeNotResponding
- wordembedding
- numpy.bool
- str.replace
- LatentFactorModel
- json
- Convert
- MatrixFactorization
- 지도시각화
- jsonl
- Visualization
- github2FA
- implicitData
- BloombergMarketConcepts
- Cast
- ExplicitData
- decimal error
- DIF_SR
Archives
- Today
- Total
목록Programming (17)
garret
[Python, MySQL] Python에서 DB 접속해 Data 다운받기 1
DB에 있는 데이터를 python으로 불러와서 바로 작업(ML,DL 등등)하고 싶을 때 할 수 있는 방법. 해당 작업은 Vscode의 주피터 파일을 열어 진행하였다. pymysql 라이브러리 설치 !pip install pymysql 필요한 라이브러리 임포트 import pymysql.cursors import pandas as pd DB 접속 # DB 접속 connection = pymysql.connect(host='호스트명', port=포트번호 , db='db명', user='user명', password='pw입력', charset='utf8', cursorclass= pymysql.cursors.DictCursor) 참고로 포트번호는 int 타입으로 넣어야 한다. 데이터 Dataframe 형식으..
Programming/Python
2023. 1. 27. 16:33