์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- ๋ฐ์ดํฐ๋ถ์์ค์ ๋ฌธ๊ฐ
- PCA
- ADsP
- iloc
- Lambda
- DBSCAN
- ๋ฐ์ดํฐ๋ถ์
- ์ฃผ์ฑ๋ถ๋ถ์
- ๊ตฐ์งํ
- ํฌ๋กค๋ง
- ์ค๋ฒ์ํ๋ง
- ๋ ๋ฆฝํ๋ณธ
- ์๋ํด๋ผ์ฐ๋
- ADP
- ํ์ด์ฌ
- ํ ์คํธ๋ถ์
- t-test
- numpy
- datascience
- ๋์ํ๋ณธ
- dataframe
- ์ธ๋์ํ๋ง
- ๋น ๋ฐ์ดํฐ
- opencv
- ๋น ๋ฐ์ดํฐ๋ถ์๊ธฐ์ฌ
- LDA
- Python
- pandas
- ๋ฐ์ดํฐ๋ถ๊ท ํ
- ๋ฐ์ดํฐ๋ถ์์ ๋ฌธ๊ฐ
๋ชฉ๋ก๐ Python (45)
Data Science LAB

์๋ ํ์ธ์! ์ค๋์ ์ง๋ ํฌ์คํ ์ ์ด์ด์ Pandas๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ด์ฉํด list, dictionary, arrayํ์์ ๋ฐ์ดํฐ๋ฅผ ๋ฐ์ดํฐํ๋ ์ํ์์ผ๋ก ๋ณํํด๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค. (เธ •_•)เธ ๋จผ์ , ๊ฐ๋จํ๊ฒ ๋ฆฌ์คํธ์ array๋ฅผ ์์ฑํด ๋ด ๋๋ค. import pandas as pd import numpy as np col_name1 = ['col1'] list1 = [1,2,3] array1 = np.array(list1) print('array1 shape: ',array1.shape) array๋ 1์ฐจ์์ผ๋ก ๊ตฌ์ฑ๋์ด ์๋ ๋ฐ์ดํฐ์ด๋ฉฐ 3๊ฐ์ ๋ก์ฐ๊ฐ ์๋ ๋ฆฌ์คํธ๊ฐ ์์ฑ๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค. ๋ฆฌ์คํธ -> ๋ฐ์ดํฐํ๋ ์ pd.DataFrame(๋ฆฌ์คํธ์ด๋ฆ,์ปฌ๋ผ๋ช ) ์ ์ด์ฉํด ๋ฐ์ดํฐํ๋ ์ ํ์์ผ๋ก ๋ฐ๊ฟ ์ค๋๋ค..

์๋ ํ์ธ์(. โ แด โ.)! ์ค๋์ ๋ฐ์ดํฐ๋ถ์์ ๊ฐ์ฅ ๊ธฐ์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ธ Pandas์ ๋ํด ๊ณต๋ถํด ๋ณด๋ ค๊ณ ํฉ๋๋น! ํ๋ค์ค๋ ์ง๋๋ฒ์ ๊ณต๋ถํ๋ ๋ํ์ด์ ๋นํด ๋ฐ์ดํฐ ํธ๋ค๋ง์ด ํจ์ฌ ์ ์ฐํ๊ณ ์ฝ๋ค๋ ์ฅ์ ์ด ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ ๋๋ค. ๋ฐ์ดํฐ ๋ถ์์์ ๊ฐ์ฅ ์์ฃผ ์ฐ์ด๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ด๊ธฐ๋ ํฉ๋๋ค...ใ ํ๋ค์ค์์ ๊ฐ์ฅ ์ค์ํ ๊ฒ์ DataFrame์ ๋๋ค. ๋ฐ์ดํฐ ํ๋ ์์ ํ๊ณผ ์ด๋ก ๊ตฌ์ฑ๋์ด ์๋ 2์ฐจ์์ ๋ฐ์ดํฐ ๊ตฌ์กฐ๋ผ๊ณ ์๊ฐํ๋ฉด ๋ฉ๋๋ค. Series -> ์ปฌ๋ผ์ด ํ๋์ธ ๊ตฌ์กฐ์ฒด DataFrame -> ์ปฌ๋ผ์ด ์ฌ๋ฌ๊ฐ์ธ ๊ตฌ์กฐ์ฒด ๋ผ๊ณ ์๊ฐํ์๋ฉด ๋ ๊ฑฐ ๊ฐ์ต๋๋น! ์ค๋์ ๋ฐ์ดํฐํ๋ ์ ํ์์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์ค๊ณ , ํ๋ค์ค๋ฅผ ์ด์ฉํด ์์ฃผ ๊ธฐ์ด์ ์ธ ๋ถ์์ ํด๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค(โ'โก'โ) ๋จผ์ , ์บ๊ธ์์ ๋ฐ์ดํฐ ๋ถ์์ ์ฌ์ฉํ ๋ฐ์ดํฐ๋ฅผ ..

์ด๋ฒ์๋ newpaper ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ด์ฉํ์ฌ ์น์ฌ์ดํธ์ ๋ด์ค ๊ธฐ์ฌ๋ฅผ ํฌ๋กค๋ง ํด๋ณด๋ ค๊ณ ํฉ๋๋ค. https://www.3gpp.org/news-events/2143-3gpp-meets-imt-2020 3GPP meets IMT-2020 November 28, 2020 Earlier this week the ITU issued a press release to publicise the move to the approval process - by the 193 member states of the Union - of their ITU-R Recommendation: 'Detailed specifications of the radio interfaces of IMT-2020.' (ITU-R www.3gpp.or..

Tabular Data ๋? - ์์ ํ์ผ ํ์์ด๋ ๊ด๊ณํ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ํ ์ด๋ธ์ ๋ด์ ์ ์๋ ๋ฐ์ดํฐ - ์ฆ, ํ๊ณผ ์ด๋ก ํํ์ด ๊ฐ๋ฅํ ๋ฐ์ดํฐ ์ฆ, ๋ฐ์ดํฐ ๋ถ์์์ ์์ฃผ ์ฌ์ฉํ๋ ํ ํ์์ ๋ฐ์ดํฐ์ด๋ค. Tabular Data ์น์์ scrapping ์ค๋ ๋ถ๋ฌ์ฌ ๋ฐ์ดํฐ๋ ํ์ค๋ฒ ๋์ ๋ฐ์ดํฐ์ด๋ค. https://en.wikipedia.org/wiki/Politics_of_Pennsylvania 1. ํ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ถ๋ฌ์ค๊ธฐ import pandas as pd import numpy as np 2. ๋ฐ์ดํฐ ๋ก๋ฉ table_PA = pd.read_html('http://en.wikipedia.org/wiki/Politics_of_Pennsylvania') len(table_PA) ๋ถ๋ฌ์จ ๋ฐ์ดํฐ์ ์ ํ์ธํด ๋ณด..

1. ํ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ก๋ฉ from skimage.io import imread from skimage.transform import resize from matplotlib import pyplot as plt import matplotlib.cm as cm 2. ํฌ๋กค๋งํ ํ์ด์ง ์ ๋ ฅ ํ ์๊ฐํํ์ฌ ํ์ธ example_file = ("http://upload.wikimedia.org/wikipedia/commons/7/7d/Dog_face.png") image = imread(example_file) plt.imshow(image) plt.show() 3. ์๊น ๋ณํ(ํ๋ฐฑ์ผ๋ก) image = imread(example_file,as_gray = True) plt.imshow(image,cmap = c..

๋ํ์ด๋ฅผ ์ด์ฉํ ํ๋ ฌ ์ ๋ ฌ ๋ฐฉ๋ฒ์ ๋ํ์ด์์ sort()๋ฅผ ํธ์ถํ๋ ๋ฐฉ์๊ณผ ํ๋ ฌ์์ฒด์์ sort()๋ฅผ ํธ์ถํ๋ ๋ฐฉ์์ด ์๋ค. np.sort() => ๋ํ์ด์์ ํธ์ถํ๋ ๋ฐฉ์์ผ๋ก ์ ํ๋ ฌ์ ๊ทธ๋๋ก ์ ์งํ ์ฑ ์ ํ๋ ฌ์ ์ ๋ ฌ๋ ํ๋ ฌ ๋ฐํ ndarray.sort() => ์ ํ๋ ฌ ์์ฒด๋ฅผ ์ ๋ ฌํ ํํ๋ก ๋ณํํ๋ฉฐ ๋ฐํ ๊ฐ์ None org_array = np.array([3,1,9,5]) print('์๋ณธ ํ๋ ฌ :',org_array) #np.sort๋ก ์ ๋ ฌ sort_array1 = sort_array1 = np.sort(org_array) print('np.sort() ํธ์ถ ํ ๋ฐํ๋ ์ ๋ ฌ ํ๋ ฌ :',sort_array1) print('np.sort() ํธ์ถ ํ ์๋ณธ ํ๋ ฌ : ',org_array) #ndarr..