๊ฐœ๋ฐœ์ผ๊ธฐ ๐Ÿ’ป

๊ฐœ์ธ์ ์œผ๋กœ ํ† ์ด ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋˜ ์ค‘, ํฌ๋กค๋ง์„ ํ†ตํ•ด ์ •๋ณด๋ฅผ ์ถ”์ถœํ•ด ๋ฉ”์ผ์ด๋‚˜ ์นดํ†ก ์•Œ๋ฆผ์„ ์ฃผ๋Š” ์‹œ์Šคํ…œ์„ ๋งŒ๋“ค๊ณ  ์žˆ์—ˆ๋‹ค. selenium์˜ webdriver๋ฅผ ํ™œ์šฉํ•ด ํฌ๋กค๋ง์„ ์ง„ํ–‰ํ•˜๋˜ ์ค‘ ๋ฐœ์ƒํ•œ chromedriver ์ด์Šˆ๋ฅผ ๊ณต์œ ํ•˜๋ ค๊ณ  ํ•œ๋‹ค. Selenium WebDriverExceptionselenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home webdriver๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด์„œ chromedriver๋ฅผ ์„ค์น˜ํ•˜์ง€ ์•Š์•˜๊ฑฐ๋‚˜ path๋ฅผ ์ œ๋Œ€๋กœ ์ง€์ •ํ•˜์ง€ ์•Š๋Š” ๋‹ค๋ฉด, ์œ„์™€ ๊ฐ™์€ ์—๋Ÿฌ๋ฉ”์„ธ์ง€๊ฐ€ ์ถœ๋ ฅ๋˜๋ฉด์„œ ..
colab ํ™˜๊ฒฝ์—์„œ jupyter notebook์„ ํ™œ์šฉํ•ด ์ž‘์—…์„ ํ•œ ๋’ค, ํ•ด๋‹น ipynb ํŒŒ์ผ์„ ๋ณด๊ณ ์„œ๋‚˜ ๋ฉ”์ผ๋กœ ์ œ์ถœํ•ด์•ผํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. ์ด๋Ÿฐ ์ƒํ™ฉ์— ๋ฉ”์ผ์ด๋‚˜ ๋ณด๊ณ ๋ฅผ ๋ฐ›๋Š” ์‚ฌ๋žŒ์ด ๊ฐ™์€ ๊ฐœ๋ฐœ์ž๊ณ  colab์ด๋‚˜ vscode๋ฅผ ํ™œ์šฉํ•ด ipynb ํŒŒ์ผ์„ ์ฝ๋Š”๋ฐ ๋ฌธ์ œ๊ฐ€ ์—†๋‹ค๋ฉด ์ƒ๊ด€์—†์ง€๋งŒ, OS, ํ™˜๊ฒฝ, ํœด๋จผ์ด์Šˆ ๋“ฑ์˜ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ipynb ํŒŒ์ผ์„ html๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ๊ณต์œ ํ•˜๋Š” ์ผ์ด ์ƒ๊ฐ๋ณด๋‹ค ์žฆ๋‹ค. (์—‘์…€์ด๋‚˜ ์›Œ๋“œ๋ฅผ ์ฝ๊ธฐ ์ „์šฉ ํŒŒ์ผ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ๋ณด๋‚ด๋Š” ๊ฒƒ๋„ ๋น„์Šทํ•œ ์ด์œ ๋ผ๊ณ  ์ง์ž‘ํ•œ๋‹ค.) ๊ทธ ์ค‘์—์„œ๋„ ํ•„์ž๋Š” ๋กœ์ปฌ ์„ฑ๋Šฅ ์ด์Šˆ๋กœ colab ํ™˜๊ฒฝ์—์„œ ์ž‘์—…์„ ์ž์ฃผ ํ•˜๊ธฐ ๋•Œ๋ฌธ์— colab ํ™˜๊ฒฝ์—์„œ google drive์™€ ์—ฐ๋™ํ•˜์—ฌ html๋กœ ์ถ”์ถœํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋‹ค๋ฃฌ๋‹ค.์ฝ”๋“œ # ๊ตฌ๊ธ€ ๋“œ๋ผ์ด๋ธŒ ์—ฐ๊ฒฐfrom googl..
์—๋Ÿฌ ๋‚ด์šฉ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• pip install numpy==1.23.4 or conda install numpy==1.23.4
์ˆœ ๊ณต๋ถ€์‹œ๊ฐ„ ํ•˜๋ฃจ 5์‹œ๊ฐ„(๋‚ฎ2,์ €3), 5์ผ ๊ณต๋ถ€ํ•˜๊ณ  ์ œ 40ํšŒ ADsP ๋ฐ์ดํ„ฐ๋ถ„์„ ์ค€์ „๋ฌธ๊ฐ€ ์ž๊ฒฉ์ฆ ์‹œํ—˜์— ์—ฌ์œ ๋กœ์šด ์ ์ˆ˜๋กœ ํ•ฉ๊ฒฉํ–ˆ๋‹ค. ๋น„์ „๊ณต์ž๋„, ๋น„์ „๋ฌธ๊ฐ€๋„ 5์ผ๋งŒ ์‹ ๊ฒฝ์“ฐ๋ฉด ์ถฉ๋ถ„ํžˆ ์ทจ๋“ํ•  ์ˆ˜ ์žˆ๋Š” ์ˆ˜์ค€์˜ ๋‚œ์ด๋„์ด๋‹ค. ๋”๊ตฐ๋‹ค๋‚˜ ๋‹จ๋‹ตํ˜•์ด ์—†์–ด์ง„ ์ง€๊ธˆ์ด์•ผ๋ง๋กœ ์ทจ๋“ํ•˜๊ธฐ ์ ๊ธฐ๊ฐ€ ์•„๋‹๊นŒ ์‹ถ๋‹ค. 5์ผ ๋™์•ˆ ๋‚ด๊ฐ€ ๊ณต๋ถ€ํ•œ ๋ฐฉ๋ฒ•๊ณผ ๋‚˜๋งŒ์˜ ๊ณต๋ถ€ ๋ฐฉ๋ฒ• ๊ฟ€ํŒ์„ ๊ณต์œ ํ•˜๋ ค๊ณ  ํ•œ๋‹ค. ๋งˆ์ง€๋ง‰์— ์ ์„ ๋‚˜๋งŒ์˜ ๋น„๋ฒ•๋„ ๊ผญ ์ฐธ๊ณ ํ•˜๊ธธ ๋ฐ”๋ž€๋‹ค. 1. ๊ต์žฌ ๋‚˜๋Š” ์ด๊ธฐ์ ์œผ๋กœ ๊ณต๋ถ€ํ–ˆ๊ณ , ์ถฉ๋ถ„ํžˆ ์ถ”์ฒœํ•œ๋‹ค. ADsP ๊ต์žฌ ์ถ”์ฒœ์„ ๊ฒ€์ƒ‰ํ•˜๋ฉด ๋ฏผํŠธ์ฑ… ๋ฏธ์–ด์บฃ์„ ๋ณดํ†ต ์ถ”์ฒœํ•˜๋Š”๋ฐ, ์ด๋ฏธ ์ด ์ค‘ ๋ณด์œ  ์ค‘์ธ ๊ต์žฌ๊ฐ€ ์žˆ๋‹ค๋ฉด ๊ตณ์ด ๋” ์‚ด ํ•„์š”๋Š” ์—†๋‹ค๊ณ  ์ƒ๊ฐํ•œ๋‹ค. ๋งŒ์•ฝ ์‚ฐ๋‹ค๋ฉด ๋ฏธ์–ด์บฃ์ด๋‚˜ ์ด๊ธฐ์ ์„ ์ถ”์ฒœํ•œ๋‹ค. ๋ฏผํŠธ์ฑ…์€ ์žˆ์œผ๋ฉด ์ข‹์ง€๋งŒ ์—†์œผ๋ฉด ๊ตณ์ด ์‚ด ์ •๋„๋กœ ์ข‹์€ ๊ต์žฌ๋Š” ์•„๋‹Œ ๊ฒƒ..
VSCode ํ™˜๊ฒฝ์—์„œ JupyterNotebook์œผ๋กœ SpaCy ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ž์—ฐ์–ด ์ฒ˜๋ฆฌ๋ฅผ ํ•˜๋˜ ์ค‘, ์˜์–ด ๋ชจ๋ธ์ธ 'en_core_web_sm'์„ ๋ถˆ๋Ÿฌ์˜ค์ง€ ๋ชปํ•˜๋Š” ์—๋Ÿฌ๋ฅผ ๋งŒ๋‚ฌ๋‹ค. google-colab ํ™˜๊ฒฝ์—์„œ ์ž‘์—…ํ•œ๋‹ค๋ฉด ๋‹ค์Œ์˜ ์ฝ”๋“œ๋กœ ์–ธ์–ด ๋ชจ๋ธ์„ ๋‹ค์šด๋ฐ›๊ณ  ๋กœ๋”ฉํ•  ์ˆ˜ ์žˆ๋‹ค. # Google - colab ํ™˜๊ฒฝ # SpaCy ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜ !pip install spacy # ์˜์–ด ์–ธ์–ด ๋ชจ๋ธ !python -m spacy download en_core_web_sm # ํ•œ๊ตญ์–ด ์–ธ์–ด ๋ชจ๋ธ !python -m spacy download ko_core_news_sm ํ•˜์ง€๋งŒ ๋‚œ colab์ด ๋„ˆ๋ฌด ๋ถˆํŽธํ•ด์„œ vscode๋กœ ์ง„ํ–‰ํ•˜๊ณ  ์‹ถ์—ˆ๊ณ , ๊ทธ๋Ÿฌ๊ธฐ ์œ„ํ•ด์„  ์„ค์ •ํ•ด๋‘” ์ปค๋„์— ์–ธ์–ด ๋ชจ๋ธ๋“ค์„ ์„ค์น˜ํ•ด์„œ ๋กœ๋”ฉํ•ด์•ผํ–ˆ๋‹ค. ..
์„ธ๊ณ„ ๊ฐ์ง€์— ์žˆ๋Š” ์ฐฝ๊ณ ๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ์ž์‚ฌ ์‹œ์Šคํ…œ ํŠน์„ฑ ์ƒ TIME-ZONE๊ณผ ๊ด€๋ จ๋œ ์ด์Šˆ๋ฅผ ๋ฌด์‹œํ•  ์ˆ˜๋Š” ์—†์—ˆ๋‹ค. ํ˜„์žฌ๋Š” ๊ตญ๋‚ด ์ฐฝ๊ณ ์—์„œ๋งŒ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์—ˆ์ง€๋งŒ ํ•ด์™ธ ์ฐฝ๊ณ  ์…‹์—… ์ผ์ •์„ ๋‚ด๋…„์œผ๋กœ ๊ณ„ํšํ•˜๊ณ  ์žˆ๋Š” ๋งŒํผ TIME-ZONE ์ด์Šˆ๋Š” ํ•„์ˆ˜ ํ•ด๊ฒฐ๊ณผ์ œ๋ผ๊ณ  ์ƒ๊ฐํ–ˆ๋‹ค. ๊ฐœ๋ฐœ ๋ฐฉ์‹ ๊ณ ๋ ค TIME-ZONE์„ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์—๋Š” ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์ด ์žˆ๊ฒ ์ง€๋งŒ, ๋‚ด๋ถ€ ๊ฐœ๋ฐœ์ž ํšŒ์˜๋ฅผ ํ†ตํ•ด ๋‚˜์˜จ ๋ฐฉ์‹์€ ๋‘ ๊ฐ€์ง€์˜€๋‹ค. ํ•˜๋‚˜๋Š” ์„ธ๊ณ„ ๊ฐ์ง€์˜ ์‹œ๊ฐ„์„ ๋‹ด์•„์„œ ๊ด€๋ฆฌํ•˜๋Š” ํ…Œ์ด๋ธ”์„ ๋งŒ๋“ค์–ด ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅํ•œ ๋‚˜๋ผ์— ์ฝ”๋“œ์— ๋งž๊ฒŒ ์‹œ์ฐจ๋ฅผ ๊ฒŒ์‚ฐํ•ด์ฃผ๋Š” ๋ฐฉ์‹์ด์—ˆ๊ณ , ๋‹ค๋ฅธ ํ•˜๋‚˜๋Š” ๋”ฐ๋กœ ์‹œ๊ฐ„์„ ๋‹ด์•„๋‘์ง€ ์•Š๊ณ  ์‚ฌ์šฉ์ž๊ฐ€ ๊ฐœ์ธ์ •๋ณด์—์„œ ๋‚˜๋ผ๋ฅผ ๋ณ€๊ฒฝํ•  ๋•Œ ์‹ค์‹œ๊ฐ„์ ์ธ APIํ†ต์‹ ์„ ํ†ตํ•ด ํ•ด๋‹น ๋„์‹œ์˜ ์‹œ๊ฐ„์„ ๋ฐ›์•„์˜ค์ž๋Š” ๊ฒƒ์ด์—ˆ๋‹ค. ์ „์ž์˜ ๋ฐฉ์‹ : TIME-ZONE์€ ๋ถˆ๋ณ€์˜ ๋ฐ์ดํ„ฐ..
> ABS(n) : ์ฃผ์–ด์ง„ ๊ฐ’์˜ ์ ˆ๋Œ€๊ฐ’ ๋ฆฌํ„ด SELECT ABS(-10), ABS(10), ABS(0) FROM DUAL; CELL(n) : ์ฃผ์–ด์ง„ ๊ฐ’๋ณด๋‹ค๋Š” ํฌ์ง€๋งŒ ๊ฐ€์žฅ ๊ทผ์ ‘ํ•˜๋Š” ์ตœ์†Œ๊ฐ’ ๋ฆฌํ„ด SELECT CEIL(5.5) FROM DUAL; EXP(n) : ์ฃผ์–ด์ง„ ๊ฐ’์˜ e์˜ ์Šน์ˆ˜๋ฅผ ๋ฆฌํ„ด (e = 2.171828183...) SELECT EXP(5) FROM DUAL; FLOOP(n) : ์ฃผ์–ด์ง„ ๊ฐ’๋ณด๋‹ค ์ž‘๊ฑฐ๋‚˜ ๊ฐ™์€ ์ตœ๋Œ€ ์ •์ˆ˜๊ฐ’์„ ๋ฆฌํ„ด SELECT FLOOR(5.5) FROM DUAL; LN(n) : ์ฃผ์–ด์ง„ ๊ฐ’์˜ ์ž์—ฐ๋กœ๊ทธ ๊ฐ’์„ ๋ฆฌํ„ด SELECT LN(148.413) FROM DUAL; LOG(m, n) : ๋ฐ‘์„ m์œผ๋กœ ํ•œ n์˜ ๋กœ๊ทธ ๊ฐ’์„ ๋ฆฌํ„ด SELECT LOG(10, 1000) FROM DUAL; MOD(..
์†Œ๊ทœ๋ชจ ํ”„๋กœ์ ํŠธ๋‚˜ ๊ฐœ์ธ์ ์œผ๋กœ ํ† ์ด ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•  ๋•Œ๋Š” ๊ตณ์ด DB๋ฅผ ๋‚˜๋ˆ„์ง€ ์•Š์•„๋„ ๊ดœ์ฐฎ์ง€๋งŒ, ๋Œ€๊ทœ๋ชจ ํ”„๋กœ์ ํŠธ๋ฅผ ๋‹ค๋ฃจ๋Š” ํ˜„์—…์—์„œ๋Š” ๊ฐœ๋ฐœ์„œ๋ฒ„์—์„œ ํ…Œ์ŠคํŠธ๋ฅผ ์ง„ํ–‰ํ•œ ๋’ค ๋ฌธ์ œ๊ฐ€ ์—†์Œ์„ ํŒŒ์•…ํ•˜๊ณ  ์šด์˜์„œ๋ฒ„์— ๋ฐ˜์˜ํ•ด ์‚ฌ์šฉ์ž๋“ค์—๊ฒŒ ์„œ๋น„์Šคํ•˜๋Š”๊ฒŒ ์ผ๋ฐ˜์ ์ด๋‹ค. ์ด๋Ÿด ๋•Œ ๊ฐœ๋ฐœ์„œ๋ฒ„์˜ DB์™€ ์šด์˜์„œ๋ฒ„์˜ DB๋ฅผ ๋™๊ธฐํ™” ์‹œํ‚ค๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•œ๋ฐ, ๋Œ€ํ‘œ์ ์ธ ๋ฌด๋ฃŒ DBMS ํˆด์ธ SqlDeveloper๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๊ฐ DB์˜ ์ฐจ์ด์ ์„ ์‰ฝ๊ฒŒ ๋น„๊ต๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค. 1. ์ƒ๋‹จ ๋ฉ”๋‰ด Tools(๋„๊ตฌ) → Database Diff(๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ฐจ์ด) 2. Source Connection, Destination Connection์— ๊ฐ๊ฐ ๊ฐœ๋ฐœDB, ์šด์˜DB ์ง€์ • 3. ๋น„๊ต๊ฐ€ ํ•„์š”ํ•œ Standard Object Types ์„ ํƒ 4. ๋น„๊ต ๋Œ€์ƒ ์ƒ์„ธ ์ง€์ •(๋ฏธ์ง€..
GROUPING() ํ•จ์ˆ˜๋Š” SELECT ์ ˆ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ํ•จ์ˆ˜์ด๋‹ค. GROUPING() ํ•จ์ˆ˜์˜ ์ธ์ž๋กœ ๊ทธ๋ฃนํ•‘ ๋Œ€์ƒ์ธ ์ปฌ๋Ÿผ์„ ์ง€์ •ํ•˜๋ฉด ํ•ด๋‹น ์ปฌ๋Ÿผ์ด NULL์ผ ๋•Œ 1, NOT NULL์ผ ๋•Œ 2๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ํ•จ์ˆ˜์ด๋‹ค. SELECT B.DNAME , A.JOB , SUM(A.SAL) , GROUPING(B.DNAME) AS GP1 , GROUPING(A.JOB) AS GP2 FROM EMP A , DEPT B WHERE A.DEPTNO = B.DEPTNO GROUP BY ROLLUP(B.DNAME, A.JOB) ORDER BY 1,2 ; ์ด๋ฅผ CASE-WHEN ์ ˆ๊ณผ ํ•จ๊ป˜ ํ™œ์šฉํ•˜๋ฉด NULL ๊ฐ’์„ ์†Œ๊ณ„, ์ด๊ณ„ ๋“ฑ์œผ๋กœ ์ง€์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. SELECT CASE WHEN T.GP1 = 1 THEN '์ด๊ณ„' ELSE T.DNA..
CUBE() ํ•จ์ˆ˜๋Š” ์ธ์ž๋กœ ๋ฐ›๋Š” ์ปฌ๋Ÿผ์œผ๋กœ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋Š” ๋ชจ๋“  ์กฐํ•ฉ์œผ๋กœ ์ง‘๊ณ„ํ•˜์—ฌ ์ถ”์ถœํ•˜๋Š” ํ•จ์ˆ˜์ด๋‹ค. ์œ„์™€ ๊ฐ™์€ ๊ฒฐ๊ณผ๋ฅผ ์–ป์œผ๋ ค๋ฉด, ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๋‹ค. SELECT B.DNAME , SUM(A.SAL) FROM EMP A , DEPT B WHERE A.DEPTNO = B.DEPTNO GROUP BY CUBE(B.DNAME) ORDER BY 1 ; ์–ผํ•๋ณด๋ฉด ROLLUP() ํ•จ์ˆ˜์™€ ๋‹ค๋ฅผ ๊ฑฐ ์—†๋Š” ํ•จ์ˆ˜์ฒ˜๋Ÿผ ๋ณด์ด์ง€๋งŒ, CUBE() ํ•จ์ˆ˜๋Š” ๋ฐ›๋Š” ์ธ์ž๊ฐ€ ๋งŽ์•„์งˆ์ˆ˜๋ก ์กฐํ•ฉ์ด ๋‹ค์–‘ํ•ด์ ธ ์ถœ๋ ฅํ•˜๋Š” ๊ฒฐ๊ณผ๊ฐ€ ํ›จ์”ฌ ๋งŽ์•„์ง„๋‹ค. SELECT B.DNAME , A.JOB , SUM(A.SAL) FROM EMP A , DEPT B WHERE A.DEPTNO = B.DEPTNO GROUP BY CUBE(B.DNAME, A.JOB) ..
xoghks_h
'๊ฐœ๋ฐœ์ผ๊ธฐ ๐Ÿ’ป' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก