์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 2BPerfect
- ๋ธ๋ผ์ฐ์ ์คํ
- ์๋ฐ
- ์ด๊ฒ์ด ์ทจ์ ์ ์ํ ์ฝ๋ฉํ ์คํธ๋ค
- ์ง ๊ฐ ์์ธก ๋ถ์
- sql
- jdbc
- PYTHON
- BFS
- Do_it
- java
- ํ๋ก๊ทธ๋๋จธ์ค
- np.zeros_like
- ํ์ ๋ณ์
- ๋ฐ์ค๊ทธ๋ํ
- ์ ํ ํฌ ํ์ด์ฌ
- ์์ด
- ์ฐธ์กฐ ๋ณ์
- MacOS
- DFS
- ๋ค์ต์คํธ๋ผ ์๊ณ ๋ฆฌ์ฆ
- matplotlib
- ์ด์ง์ ๋ณํ
- ๋ฐฑ์ค
- Do it
- mysql
- dacon
- ์ต์
- ํฉํ ๋ฆฌ์ผ ์ง๋ฒ
- Extended Slices
- Today
- Total
๋ชฉ๋กDevelopment (97)
๐ฆ ๊ณต๋ฃก์ด ๋์!
๋ฐ์ดํฐ ์๊ฐํ 4 #๊ทธ๋ํ ์ ์ฅํ๊ธฐ plt.savefig(file_name,[,dpi=dpi_n(๊ธฐ๋ณธ์ 72)]) improt matplotlib as mpl mpl.rcParams['figure.figsize'] >>[6,4] ๋๋น ๋์ด plt.savefig('~~',dpi=100) pt.show() ## pandas๋ก ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ pandas์ ๊ทธ๋ํ ๊ตฌ์กฐ Series_data.plot([kind='graph_kind][,option]) DataFrame_data.plot([x=label ํน์ position,y=label ํน์ position,][kind='graph_kind'] [,option]) kind์ต์ line scatter bar barh hist pie ##์์ s1.plot(grid..
๋ฐ์ดํฐ ์๊ฐํ 3 # ๋ง๋ ๊ทธ๋ํ plt.bar(x,height[,width=width_f,color=colors,tick_label=tick_labels,align='center' ํน์ 'edge',label=labels]) height๋ ๋ฐ์ดํฐ tick_label์ ๋ฌธ์์ด ๋๋ ๋ฌธ์์ด ๋ฆฌ์คํธ๋ฅผ ์ ๋ ฅํด ๋ง๋ ๊ทธ๋ํ ๊ฐ๊ฐ์ ์ด๋ฆ์ ์ง์ ํ ์ ์๋ค align ์์น ์ ๋ ฌ center, edge label์ ๋ฒ๋ก ## ์์ import matplotlib.pyplot as plt import numpy as np mem=['1','2',~] be=[25,23,~] ae=[12,43,~] nd=len(mem) index=np.arange(nd)# ํ์ ์ ๋งํผ index ์ง์ 0123 plt.bar(index,..
๋ฐ์ดํฐ ์๊ฐํ2 ##๋ผ๋ฒจ ์ ๋ชฉ ๊ฒฉ์ ๋ฒ๋ก ๋ฌธ์์ดํ์ plt.xlabel('X-axis') plt.ylabel('Y-axis') plt.title('Graph title') plt.grid(True) plt.legend(['data1',~~]) plt.legend(['data1',~~],loc='lower right') best # ์ต์ ์์น ์๋ ์์ฑ 0 upper right 1 upper left 2 lower left 3 lower right 4 right 5 center left 6 center right 7 lower center 8 upper center 9 center 10 plt.legend(['data1',~~],loc=4) ## ํ๊ธ ์ฌ์ฉ์ matplotlib.rcParams['font...
์น ์คํฌ๋ํ #pandas ๋ด๋ถ์ ์ผ๋ก matplotlib์ ์ฌ์ฉํ๊ธฐ ๋๋ฌธ์ # ๊ฐ๋จํ ๊ทธ๋ํ๋ผ๋ฉด pandas๋ง import ์์ผ๋ ๋จ! # ์น์ฌ์ดํธ ## ํ๋ import webbrowser url=naver~ webbrowser.open(url) naver_search_url='~/search.naver?query=' search_word='ํ์ด์ฌ' url=nsu+sw webbrowser.open_new(url) ##์ฌ๋ฌ๊ฐ urls=['๋ค์ด๋ฒ','๊ตฌ๊ธ'~] for url in urls: webbrowser.open_new(url) search_words=['ํ์ด์ฌ','',''] for search_word in sws: webbrowser.open_new(url+search_word) # ์นํ์ด์ง ์์ค..
๋ฐ์ดํฐ ์๊ฐํ1 #matplotlib import matplotlib.pyplot as plt %matplotlib qt #ํ์ ์ฐฝ์์ ๊ทธ๋ํ๋ฅผ ์ถ๋ ฅํ ๋ %matplotlib inline # ๊ฒฐ๊ณผ๋ถ๋ถ ์ถ๋ ฅ # ์ ๊ทธ๋ํ ๊ธฐ๋ณธ์ ์ธ ์ ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ plt.plot([x,]y[,fmt]) plt.plot(y) plt.plot(y,fmt) plt.plot(x,y) plt.plot(x,y,fmt) data1=[1,2,3,4,5] plt.plot(data1) plt.show() ์์ import numpy as np x=np.arange(-4.5,5,0.5) y=2*x**2 # ์ฌ๋ฌ ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ y2=5*x+30 y3=4*x**2+10 plt.plot(x1,y1,x2,y2~~) plt.plot(x,y) plt.p..
Pandas import pandas as pd s=pd.Series(seq_data) np.nan=NaN s=pd.Series(seq,index=datetime) pd.date_range(start=none,end=none,periods=none,freq='d') freq d b w m bm q qs h s pd.data_range(start='2022-01-01',end='2022/01/25') # DataFrame df=pd.DataFrame(data,[,index=index_data,columns=columns_data]) pd.DataFrame(data,columns=['a','b','c']) # ์ด๋ฐ์์ผ๋ก ์์๋ ๋ฐ๊พธ๊ธฐ ๊ฐ๋ฅ #dict์ ๊ฒฝ์ฐ ์๋์ ์ผ๋ก ํค๊ฐ columns๋ก ์ง์ ๋จ df.mea..