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


๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ

(223)
[Python] matplotlib - plot ์ˆ˜์ง์„ , ์ˆ˜ํ‰์„  ๊ทธ๋ฆฌ๊ธฐ import matplotlib.pyplot as plt plt.plot([1,2,3,4,5],[1,2,3,4,5]) # vertical lines, x=2, y = 1~4 plt.vlines(2, 1, 4) # horizontal lines, y=2, x=1~5 plt.hlines(2, 1, 5, 'y') plt.show() https://matplotlib.org/api/_as_gen/matplotlib.pyplot.vlines.html matplotlib.pyplot.vlines — Matplotlib 3.3.1 documentation Plot vertical lines. Plot vertical lines at each x from ymin to ymax. Note In addition to t..
[Python] matplotlib - plot ์ด๋ฏธ์ง€ ์ €์žฅ import matplotlib.pyplot as plt plt.(x, y) plt.savefig('figure.png', dpi=80)
[Python] Dataframe - iterrows for i, row in df.iterrows(): df.loc[i, 'a'] = 1 cnt = row['count']
[Python] python-docx - word ์ฝ๊ธฐ/ํŽธ์ง‘ ํ•˜๊ธฐ Demo.docx ํŒŒ์ผ์„ ์—ด์–ด์„œ ํŽธ์ง‘ํ•ด๋ณด๊ธฐ from docx import Document from docx.enum.table import WD_ALIGN_VERTICAL from docx.enum.text import WD_ALIGN_PARAGRAPH document = Document('Demo.docx') # ๋ฌธ์„œ๋‚ด์˜ ํ…Œ์ด๋ธ”๋“ค tables = document.tables # 1๋ฒˆ์งธ ํ…Œ์ด๋ธ” 0, 0 ์…€ - 2๋ฒˆ์งธ paragraphs์— ์ž…๋ ฅ tables[0].cell(0, 0).paragraphs[1].text = 'paragraphs[1]' # 2๋ฒˆ์งธ ํ…Œ์ด๋ธ” 0, 0 ์…€์— ์ž…๋ ฅ tables[1].cell(0, 0).text = 'table[1] (0,0)' out_file = 'New.docx' do..
[Python] openpyxl - ์—‘์…€ ์ฝ๊ธฐ/ํŽธ์ง‘ ํ•˜๊ธฐ
git ์„ค์ • git ์„ค์ •, ์ €์žฅ์†Œ ์—ฐ๊ฒฐ git init git add . git commit -m "initial commit" git remote add origin git push origin master git ์—ฐ๊ฒฐ ํ•ด์ œ git remote remove origin git remote -v .git ํŒŒ์ผ ์‚ญ์ œ!
[Javascript] MathJax - ์ˆ˜ํ•™ ๊ธฐํ˜ธ ์“ฐ๊ธฐ MathJax : HTML ๋ฌธ์„œ์—์„œ ์ˆ˜ํ•™ ์ˆ˜์‹์„ ํ‘œํ˜„ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ์˜คํ”ˆ์†Œ์Šค ์Šคํฌ๋ฆฝํŠธ $$ \frac{-b\pm\sqrt{b^2-4ac}}{2a} $$ $$ \frac{-b\pm\sqrt{b^2-4ac}}{2a} $$ http://www.hostmath.com/ HostMath - Online LaTeX formula editor and browser-based math equation editor Copy and paste the code above to your webpage! Equation Type Paragraph Equation Inline Equation www.hostmath.com https://johngrib.github.io/wiki/mathjax-latex/ MathJax๋กœ La..
[Python] Pandas - Dataframe, NaN ๊ฐ’ ์ฒ˜๋ฆฌ ๊ฒฐ์ธก๊ฐ’ ์žˆ๋Š” ํ–‰ ์‚ญ์ œ (axis=1 ๋˜๋Š” column ์ด๋ผ๊ณ  ํ•˜๋ฉด ์ปฌ๋Ÿผ ์‚ญ์ œ) df = df.dropna(axis = 0) df = df.reset_index(drop=True) ํŠน์ • ์—ด ์กฐ๊ฑด ์ฃผ๊ธฐ df.dropna(subset=['score']) 0์œผ๋กœ ๋ฐ”๊พธ๊ธฐ # 1 df.fillna(0) # 2 df.replace(np.NaN, 0)