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


Python

(75)
[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..
[Python] matplotlib - axvspan, hatch ๋ฉด์ , ํŒจํ„ด ๊ทธ๋ฆฌ๊ธฐ import numpy as np import matplotlib.pyplot as plt t = np.arange(-1, 3, .01) s = np.sin(2.5 * np.pi * t) plt.plot(t, s) plt.axvspan(1.25, 1.55, facecolor='red', edgecolor='gold', alpha=0.5, hatch='///') plt.show() https://matplotlib.org/3.1.3/api/_as_gen/matplotlib.pyplot.axvspan.html matplotlib.pyplot.axvspan — Matplotlib 3.1.3 documentation Parameters: xmin : scalar Number indicating the first..
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] matplotlib - plot ํฐํŠธ ํฌ๊ธฐ ๋ณ€๊ฒฝ import matplotlib.pyplot as plt SMALL_SIZE = 8 MEDIUM_SIZE = 10 BIGGER_SIZE = 12 plt.rc('font', size=SMALL_SIZE) # controls default text sizes plt.rc('axes', titlesize=SMALL_SIZE) # fontsize of the axes title plt.rc('axes', labelsize=MEDIUM_SIZE) # fontsize of the x and y labels plt.rc('xtick', labelsize=SMALL_SIZE) # fontsize of the tick labels plt.rc('ytick', labelsize=SMALL_SIZE) # fontsize o..
[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! ๋ผ๊ณ  ๋œฌ๋‹ค :)
[Python] Python ๋ฒ„์ „ ํ™•์ธ python ๋ฒ„์ „ ํ™•์ธ python -V