https://www.kaggle.com/competitions/2022-ai-tp-18011833/data
날씨별 배달음식 주문 품목 예측
2022학년도 2학기 인공지능 텀프로젝트
www.kaggle.com
https://data.kma.go.kr/data/grnd/selectAsosRltmList.do?pgmNo=36
기상자료개방포털[데이터:기상관측:지상:종관기상관측(ASOS):자료]
Home 데이터기상관측지상종관기상관측(ASOS) 종관기상관측(ASOS) --> 자바스크립트가 비활성 되었습니다. 해당 기능은 자바스크립트에서 활성상태에서 사용가능합니다. 종관기상관측이란 종관
data.kma.go.kr
maria DB 현재 유저 확인하는 법
with conn.cursor() as cursor:
# SQL 쿼리 실행: 현재 사용자 확인
cursor.execute("SELECT USER();")
current_user = cursor.fetchone()
print("Current User:", current_user[0]) # 결과 출력
QLAlchemy에서 세션(Session)은 데이터베이스와의 연결을 관리하고, 데이터의 조회, 추가, 수정, 삭제를 처리하는 역할을 합니다.
따라서, 테이블 생성만 완료된 상태라도 데이터를 삽입하려면 세션을 생성해야 합니다. 세션을 생성하면 데이터베이스와의 연결이 설정되고, 이후 데이터를 삽입하는 등의 작업을 할 수 있습니다.
세션 생성 이유:
- 트랜잭션 관리: 세션은 데이터베이스와의 연결을 유지하고, 여러 쿼리 작업을 하나의 트랜잭션으로 묶을 수 있게 도와줍니다. session.commit()을 호출하기 전까지 변경 사항이 실제 데이터베이스에 반영되지 않도록 합니다.
- 데이터 삽입 및 쿼리 실행: 데이터를 삽입하려면 세션을 통해 ORM 객체를 데이터베이스에 추가하고, 최종적으로 session.commit()으로 커밋해야 합니다.
따라서, 세션을 생성하는 과정은 필수입니다. 이미 테이블이 생성되었더라도, 데이터를 삽입하려면 반드시 세션을 생성해야 합니다.
버전
python --version
Python 3.11.9
pip list
Package Version
------------------------- -----------
altair 5.4.1
anyio 4.2.0
appdirs 1.4.4
arelle-release 2.30.3
argon2-cffi 21.3.0
argon2-cffi-bindings 21.2.0
asttokens 2.4.1
async-lru 2.0.4
attrs 23.2.0
Automat 22.10.0
Babel 2.11.0
beautifulsoup4 4.12.3
bidict 0.23.1
bleach 4.1.0
blinker 1.8.2
Brotli 1.0.9
bs4 0.0.2
cachetools 5.5.0
certifi 2024.6.2
cffi 1.16.0
charset-normalizer 2.0.4
click 8.1.7
cmudict 1.0.30
colorama 0.4.6
comm 0.2.2
constantly 23.10.4
contourpy 1.2.1
cryptography 43.0.0
cssselect 1.2.0
cycler 0.12.1
Cython 3.0.11
dart-fss 0.4.10
debugpy 1.8.2
decorator 5.1.1
defusedxml 0.7.1
Distance 0.1.3
easyocr 1.7.2
eKoNLPy 2.0.5
emoji 1.2.0
et-xmlfile 1.1.0
executing 2.0.1
fake-useragent 1.5.1
fastjsonschema 2.16.2
filelock 3.15.4
Flask 3.0.3
fonttools 4.53.1
fsspec 2024.9.0
fugashi 1.3.2
gensim 4.3.3
gitdb 4.0.11
GitPython 3.1.43
greenlet 3.1.1
h11 0.14.0
hangul-jamo 1.0.1
huggingface-hub 0.26.0
hyperlink 21.0.0
idna 3.7
imageio 2.36.0
importlib_metadata 8.4.0
importlib_resources 6.4.5
incremental 24.7.2
iniconfig 2.0.0
ipykernel 6.29.5
ipython 8.26.0
ipywidgets 8.1.3
isodate 0.6.1
itemadapter 0.9.0
itemloaders 1.3.1
itsdangerous 2.2.0
jamo 0.4.1
jedi 0.19.1
Jinja2 3.1.4
jmespath 1.0.1
joblib 1.4.2
JPype1 1.5.0
json5 0.9.6
jsonschema 4.19.2
jsonschema-specifications 2023.7.1
jupyter_client 8.6.2
jupyter_core 5.7.2
jupyter-events 0.10.0
jupyter-lsp 2.2.0
jupyter_server 2.14.1
jupyter_server_terminals 0.4.4
jupyterlab 4.0.11
jupyterlab-pygments 0.1.2
jupyterlab_server 2.25.1
jupyterlab_widgets 3.0.11
kiwisolver 1.4.5
kollocate 0.0.2
konlpy 0.6.0
koparadigm 0.10.0
kss 6.0.4
lazy_loader 0.4
lxml 5.2.2
markdown-it-py 3.0.0
MarkupSafe 2.1.3
matplotlib 3.9.1
matplotlib-inline 0.1.7
mdurl 0.1.2
mecab-ko-dic 1.0.0
mistune 2.0.4
mpmath 1.3.0
narwhals 1.8.3
nbclient 0.8.0
nbconvert 7.10.0
nbformat 5.9.2
nest-asyncio 1.6.0
networkx 3.3
ninja 1.11.1.1
nltk 3.9.1
notebook_shim 0.2.3
numpy 1.26.4
opencv-python 4.10.0.84
opencv-python-headless 4.10.0.84
openpyxl 3.1.5
outcome 1.3.0.post0
overrides 7.4.0
packaging 24.1
pandas 2.2.2
pandocfilters 1.5.0
parsel 1.9.1
parso 0.8.4
pecab 1.0.8
pillow 10.4.0
pip 24.0
platformdirs 4.2.2
pluggy 1.5.0
prometheus-client 0.14.1
prompt_toolkit 3.0.47
Protego 0.3.1
protobuf 5.28.2
psutil 6.0.0
pure_eval 0.2.3
py-cpuinfo 9.0.0
pyarrow 17.0.0
pyasn1 0.6.0
pyasn1_modules 0.4.0
pyclipper 1.3.0.post6
pycparser 2.21
pydeck 0.9.1
PyDispatcher 2.0.7
Pygments 2.18.0
PyMySQL 1.1.1
pyOpenSSL 24.2.1
pyparsing 3.1.2
PySocks 1.7.1
pytest 8.3.2
python-bidi 0.6.3
python-dateutil 2.9.0.post0
python-dotenv 1.0.1
python-json-logger 2.0.7
python-mecab-ko 1.3.7
python-mecab-ko-dic 2.1.1.post2
pytz 2024.1
pywin32 306
pywinpty 2.0.10
PyYAML 6.0
pyzmq 26.0.3
queuelib 1.7.0
referencing 0.30.2
regex 2024.5.15
requests 2.32.2
requests-file 2.1.0
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rich 13.8.1
rpds-py 0.10.6
safetensors 0.4.5
scikit-image 0.24.0
scikit-learn 1.5.1
scipy 1.13.1
Scrapy 2.11.2
scrapy-selenium 0.0.7
seaborn 0.13.2
selenium 4.15.2
Send2Trash 1.8.2
service-identity 24.1.0
setuptools 69.5.1
shapely 2.0.6
six 1.16.0
smart-open 7.0.4
smmap 5.0.1
sniffio 1.3.0
sortedcontainers 2.4.0
soupsieve 2.5
SQLAlchemy 2.0.35
stack-data 0.6.3
streamlit 1.38.0
streamlit-option-menu 0.4.0
sympy 1.13.1
tenacity 8.5.0
termcolor 2.3.0
terminado 0.17.1
threadpoolctl 3.5.0
tifffile 2024.9.20
tinycss2 1.2.1
tldextract 5.1.2
tokenizers 0.20.1
toml 0.10.2
torch 2.5.0
torchvision 0.20.0
tornado 6.4.1
tossi 0.3.1
tqdm 4.66.4
traitlets 5.14.3
transformers 4.45.2
trio 0.25.1
trio-websocket 0.11.1
Twisted 24.7.0
typing_extensions 4.12.2
tzdata 2024.1
ultralytics 8.3.17
ultralytics-thop 2.0.9
unicodedata2 15.1.0
Unidecode 1.3.8
urllib3 2.2.2
w3lib 2.2.1
watchdog 4.0.2
wcwidth 0.2.13
webencodings 0.5.1
websocket-client 1.8.0
Werkzeug 3.0.4
wheel 0.43.0
Whoosh 2.7.4
widgetsnbextension 4.0.11
win-inet-pton 1.1.0
wordcloud 1.9.3
wrapt 1.16.0
wsproto 1.2.0
xgboost 2.1.0
xlrd 1.2.0
XlsxWriter 3.2.0
xmltodict 0.13.0
yaspin 3.0.2
zipp 3.20.1
zope.interface 7.0.1
mariadb -V
C:\Program Files\MariaDB 11.3\bin\mariadb.exe from 11.3.2-MariaDB, client 15.2 for Win64 (AMD64), source revision 068a6819eb63bcb01fdfa037c9bf3bf63c33ee42