Markdown์ ํ ์คํธ ๊ธฐ๋ฐ์ ๋งํฌ์ ์ธ์ด๋ก 2004๋ ์กด๊ทธ๋ฃจ๋ฒ์ ์ํด ๋ง๋ค์ด์ก์ผ๋ฉฐ ์ฝ๊ฒ ์ฐ๊ณ ์ฝ์ ์ ์์ผ๋ฉฐ HTML๋ก ๋ณํ์ด ๊ฐ๋ฅํ๋ค. ํน์๊ธฐํธ์ ๋ฌธ์๋ฅผ ์ด์ฉํ ๋งค์ฐ ๊ฐ๋จํ ๊ตฌ์กฐ์ ๋ฌธ๋ฒ์ ์ฌ์ฉํ์ฌ ์น์์๋ ๋ณด๋ค ๋น ๋ฅด๊ฒ ์ปจํ ์ธ ๋ฅผ ์์ฑํ๊ณ ๋ณด๋ค ์ง๊ด์ ์ผ๋ก ์ธ์ํ ์ ์๋ค. ๋งํฌ๋ค์ด์ด ์ต๊ทผ ๊ฐ๊ด๋ฐ๊ธฐ ์์ํ ์ด์ ๋ ๊นํ(https://github.com) ๋๋ถ์ด๋ค. ๊นํ์ ์ ์ฅ์Repository์ ๊ดํ ์ ๋ณด๋ฅผ ๊ธฐ๋กํ๋ README.md๋ ๊นํ์ ์ฌ์ฉํ๋ ์ฌ๋์ด๋ผ๋ฉด ๋๊ตฌ๋ ๊ฐ์ฅ ๋จผ์ ์ ํ๊ฒ ๋๋ ๋งํฌ๋ค์ด ๋ฌธ์์๋ค. ๋งํฌ๋ค์ด์ ํตํด์ ์ค์น๋ฐฉ๋ฒ, ์์ค์ฝ๋ ์ค๋ช , ์ด์ ๋ฑ์ ๊ฐ๋จํ๊ฒ ๊ธฐ๋กํ๊ณ ๊ฐ๋ ์ฑ์ ๋์ผ ์ ์๋ค๋ ๊ฐ์ ์ด ๋ถ๊ฐ๋๋ฉด์ ์ ์ ์ฌ๋ฌ ๊ณณ์ผ๋ก ํผ์ ธ๊ฐ๊ฒ ๋๋ค.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
๐ Morning 33 commits โโโโโโโโโโโโโโโโโโโโโ 6.4% | |
๐ Daytime 165 commits โโโโโโโโโโโโโโโโโโโโโ 32.1% | |
๐ Evening 180 commits โโโโโโโโโโโโโโโโโโโโโ 35.0% | |
๐ Night 136 commits โโโโโโโโโโโโโโโโโโโโโ 26.5% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import Counter | |
from itertools import chain | |
def ngram_count(docs_tokenized, n, n_display=50): | |
''' | |
Args: | |
docs : ํ ํฐ ๋ญ์น 2d list | |
์์ :[['๋ฌธ์ฌ์ธ', '์์ ', '๊ตญ๋ฏผ', 'ํ์ธ', '๋ฌผ์ด๋ด', '๋ฌธ์ฌ์ธ', '๋ํต๋ น', '๋ฌผ์ด๋ด'], | |
['์ ์', '์ ์ผ', '๋จผ์ ', '์๊ฐ๋ฆฌ', '๋ํต๋ น', 'ํน์', '๋ถ๋', '์ค๋ฏธ'], | |
n : n-gram ์ ํ. e.g., unigram : 1, bigram : 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generate_circular_wordcloud(strings): | |
"""Returns circle shape Word Cloud | |
Example: | |
strings (str): "๊ธฐ์ต ๋์ ๋๊ทฟ ๊ธฐ์ต ๊ธฐ์ต" | |
strings (dict) {"๊ธฐ์ต":30, "๋์":10, "๋๊ทฟ":1} | |
""" | |
# mask circle | |
x, y = np.ogrid[:1000, :1000] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#์ถ์ฒ - ํ์ด์ฌ์ ์ด์ฉํ ๋จธ์ ๋ฌ๋, ๋ฅ๋ฌ๋ ์ค์ ๊ฐ๋ฐ ์ ๋ฌธ | |
import np | |
def get_outlier(df=None,column=None,weight=1.5): | |
'''์ธ์๋ก Dataframe๊ณผ ์ด์์น๋ฅผ ๊ฒ์ถํ ์นผ๋ผ์ ์ ๋ ฅ๋ฐ๋๋ค. | |
iqr์ 1.5 ๊ณฑํด์ ์ด์ ๊ธฐ๋ฐํ์ฌ ์ด์์น๋ฅผ ๊ตฌํด ํด๋น ์ด์์น๊ฐ ์๋ index ๋ฐํ | |
''' | |
column_x = df[column] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from konlpy.tag import Mecab | |
from khaiii import KhaiiiApi | |
def remove_brackets(string, left_paren_type,right_paren_type): | |
'''Remove brackets (parentheses) and their contents within a string | |
Args : | |
left_paren_type = '[','(' etc | |
right_paren_type = ']', ')' etc |