๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ


Python/Basic

(27)
[Python] openpyxl - ์—‘์…€ ์ฝ๊ธฐ/ํŽธ์ง‘ ํ•˜๊ธฐ
Streamlit. The fastest way to build custom ML tools https://www.streamlit.io/ Streamlit — The fastest way to build custom ML tools Streamlit is an open-source app framework for Machine Learning and Data Science teams. Create beautiful data apps in hours, not weeks. All in pure Python. All for free. www.streamlit.io
[Python] __name__ __name__ - ํŒŒ์ด์ฌ ์ž์ฒด์—์„œ ์‚ฌ์šฉํ•˜๋Š” ๋ณ€์ˆ˜ - ์ง์ ‘ ์‹คํ–‰ ๋œ ๊ฒฝ์šฐ๋Š” __name__ = __main__ - ๋‹ค๋ฅธ ํŒŒ์ผ์— ์ž„ํฌํŠธ ๋œ ๊ฒฝ์šฐ๋Š” ์ž์‹ ์˜ ํŒŒ์ผ๋ช…์ด ๋ฐ”์ธ๋”ฉ๋จ # ์ง์ ‘ ์‹คํ–‰ํ•œ ๊ฒฝ์šฐ๋งŒ ์‹คํ–‰ if __name__ == "__main__": print(__name__)
[Python] Pandas null ์ฒดํฌ # importing pandas package import pandas as pd pd.isnull(data["Gender"]) pd.notnull(data["Gender"]) pd.isnull() / pd.notnull() https://www.geeksforgeeks.org/python-pandas-isnull-and-notnull/ Python | Pandas isnull() and notnull() - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and pr..
Sqlite http://pythonstudy.xyz/python/article/204-SQLite-%EC%82%AC%EC%9A%A9 ์˜ˆ์ œ๋กœ ๋ฐฐ์šฐ๋Š” ํŒŒ์ด์ฌ ํ”„๋กœ๊ทธ๋ž˜๋ฐ - SQLite ์‚ฌ์šฉ 1. sqlite3 ์†Œ๊ฐœ SQLite๋Š” ๋ณ„๋„์˜ DB ์„œ๋ฒ„๊ฐ€ ํ•„์š”์—†์ด DB ํŒŒ์ผ์— ๊ธฐ์ดˆํ•˜์—ฌ ๋ฐ์ดํƒ€๋ฒ ์ด์Šค ์ฒ˜๋ฆฌ๋ฅผ ๊ตฌํ˜„ํ•œ Embedded SQL DB ์—”์ง„์ด๋‹ค. SQLite๋Š” ๋ณ„๋„์˜ ๋ณต์žกํ•œ ์„œ๋ฒ„ ์„ค์น˜๊ฐ€ ํ•„์š” ์—†๊ณ , ์‰ฝ๊ณ  ํŽธ๋ฆฌํ•˜๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ์ ์—์„œ ๋„๋ฆฌ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ๋‹ค. ์˜ค๋Š˜๋‚  ๋Œ€๋ถ€๋ถ„์˜ Mac OS X ๋‚˜ ๋ฆฌ๋ˆ…์Šค์—์„œ๋Š” SQLite์„ ๊ธฐ๋ณธ์ ์œผ๋กœ ๋‚ด์žฅํ•˜๊ณ  ์žˆ์ง€๋งŒ, ๋งŒ์•ฝ ์‹œ์Šคํ…œ์— ๋‚ด์žฅ๋˜์–ด ์žˆ์ง€ ์•Š๋Š” ๊ฒฝ์šฐ๋Š” http://www.sqlite.org ์—์„œ ๋‹ค์šด๋ฐ›์•„ ์„ค pythonstudy.xyz https://docs.python.org/3/l..
[pandas] datetime ์œผ๋กœ type ๋ณ€๊ฒฝํ•˜๊ธฐ x์ถ•์ด datetime ํ˜•์‹์ด ์•„๋‹ˆ๋ฉด date ํ˜•์‹์œผ๋กœ ๋ณ€๊ฒฝํ•˜๊ธฐ import pandas as pd dataset['DATE_TIME'] = pd.to_datetime(dataset['DATE_TIME'])
MySQL ์—ฐ๋™ํ•˜๊ธฐ(DB ํด๋ž˜์Šค ์ƒ์„ฑ) https://kkamikoon.tistory.com/162?category=825129 [Python Flask] ์›น ํŽ˜์ด์ง€ ๋งŒ๋“ค๊ธฐ 06 - MySQL ์—ฐ๋™ํ•˜๊ธฐ(DB ํด๋ž˜์Šค ์ƒ์„ฑ) ์ด์ „ ํฌ์ŠคํŠธ์—์„œ๋Š” MySQL์„ ์—ฐ๋™ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด์•˜์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ด ๋ฐฉ๋ฒ•์œผ๋กœ๋Š” ๋‚˜์ค‘์— ์ถ”๊ฐ€์ ์ธ ๊ธฐ๋Šฅ์„ ๊ฐœ๋ฐœํ•˜๊ณ , ๋˜ ๋‹ค์‹œ ์—ฐ๋™ํ•˜๋Š” ๋ฐ ์žˆ์–ด์„œ ๋งค์šฐ ์–ด๋ ค์›€์ด ์žˆ์Šต๋‹ˆ๋‹ค.. ์ฆ‰, ๊ณ„์†ํ•ด์„œ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ๋‹ค์‹œ.. kkamikoon.tistory.com
[Python] flask(์›น ํ”„๋ ˆ์ž„์›Œํฌ)๋กœ ์ดˆ๊ฐ„๋‹จ ์›น ํŽ˜์ด์ง€ ๋งŒ๋“ค๊ธฐ ์„ค์น˜ pip install flask hello_world.py from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.run() ์œ„์™€ ๊ฐ™์ด ์ž‘์„ฑํ•œ hello_world.py ์‹คํ–‰ ํ›„ 127.0.0.1:5000๋กœ ๋“ค์–ด๋ฉด Hello World! ๋ผ๊ณ  ๋œฌ๋‹ค :)