[Python] ๋ฐ์ดํฐํ๋ ์ ์ ๋ฆฌ
ํ๋ก๊ทธ๋๋ฐ ์ธ๊ณ๋ฅผ ํ๊ตฌํฉ์๋ค. import pandas as pd ํ๋จ์ ํฉ์น๊ธฐ ### ์์ ๋ฐ์ดํฐ ์์ฑ # ์์ ๋ฐ์ดํฐ data = [["Dog", 3], ["Cat", 5], ["Tiger", 2]] index = [0, 1, 2] columns = ["๋๋ฌผ", "๋์ด"] df_temp1 = pd.DataFrame(data, index=index, columns=columns) df_temp1 ### ์์ ๋ฐ์ดํฐ ์์ฑ # ์์ ๋ฐ์ดํฐ data = [["์ง", 3], ["์ด์", 5], ["์ด์", 2]] index = [0, 1, 2] columns = ["์ฌ๋๊ณณ", "๋ฟ์๊ฐฏ์"] df_temp2 = pd.DataFrame(data, index=index, columns=columns) df_temp..
2023. 12. 14.