Á¤¼ºÈÆ
    code_12_23.py (±³Àç)
  http://itsys.hansung.ac.kr/cgi-bin/onlineTest/viewpy4AI/onlinePy4AI.cgi?source=src/py/Ch12/code_12_23.py



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# µû¶óÇϸ砹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020)
# 12.23 µ¥ÀÌÅ͸¦ Å©±â¿¡ µû¶ó ³ª¿­ÇÏÀÚ : Á¤·Ä, 334ÂÊ
#
import pandas as pd
import matplotlib.pyplot as plt
 
countries_df = pd.read_csv('d:/data/countries.csv', index_col = 0)
sorted = countries_df.sort_values('population')
print(sorted)
 
################################
 
countries_df = pd.read_csv('d:/data/countries.csv', index_col = 0)
countries_df.sort_values('population', inplace = True)
print(countries_df)
 
#################################
 
countries = pd.read_csv('d:/data/countries.csv', index_col = 0, encoding='CP949')
countries.sort_values(['population''area'], ascending = False, inplace = True)
print(countries)
cs

  µî·ÏÀÏ : 2022-02-21 [16:45] Á¶È¸ : 654 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûch12.ipynb (¿¹Á¦ Àüü)
¡ä ´ÙÀ½±Ûcode_12_23_3.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
361    ¦¦❷ lcode_14_22_1.py (±³Àç) 493 12-06
360 ¦¦❶ lcode_14_20.py (±³Àç) 394 12-06
359 ¦¦❶ lcode_14_19.py (±³Àç) 359 12-06
358 ¦¦❶ lcode_14_18.py (±³Àç) 357 12-06
357 ¦¦❶ lcode_14_17.py (±³Àç) 356 12-06
356 ¦¦❶ lcode_14_16.py (±³Àç) 357 12-06
355 ¦¦❶ lcode_14_13.py (±³Àç) 351 12-06
354 ¦¦❶ llab_14_2.py (±³Àç) 395 12-06
353 ¦¦❶ lcode_14_12.py (±³Àç) 377 12-06
352 ¦¦❶ lcode_14_10_2.py (±³Àç) 343 12-06
351 ¦¦❶ lcode_14_10_1.py (±³Àç) 379 12-06
350 ¦¦❶ lcode_14_9.py (±³Àç) 367 12-06
349 ¦¦❶ llab_14_1.py (±³Àç) 378 12-06
348 ¦¦❶ lcode_14_8.py (±³Àç) 389 12-06
347 ¦¦❶ lcode_14_7.py (±³Àç) 405 12-06
346 (13Àå) ½Ã°¢ Á¤º¸¸¦ ´Ù·ç¾îº¸ÀÚ 485 02-19
345 ¦¦❶ lch13.ipynb (¿¹Á¦ Àüü) 648 03-01
344 (12Àå) ÆÇ´Ù½º·Î µ¥ÀÌÅ͸¦ ºÐ¼®Çغ¸ÀÚ 780 02-19
343 ¦¦❶ lch12.ipynb (¿¹Á¦ Àüü) 771 03-01
342 ¦¦❶ lcode_12_23.py (±³Àç) 654 02-21

[1][2][3][4][5][6][7][8][9][10]-[Next][20]