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



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# µû¶óÇϸ砹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020)
# 12.15 µ¥ÀÌÅ͸¦ Æ¯Á¤ÇÑ °ª¿¡ ±â¹ÝÇÏ¿© ¹­´Â ±â´É : ±×·ìÇΠ, 323ÂÊ
#
import pandas as pd
weather = pd.read_csv('d:/data/weather.csv', encoding='CP949')
weather['month'= pd.DatetimeIndex(weather['ÀϽÃ']).month
means = weather.groupby('month').mean()
 
print(means)
 
##############################
 
sum_data = weather.groupby('month').sum()
print(sum_data)
cs

  µî·ÏÀÏ : 2022-02-21 [16:24] Á¶È¸ : 307 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûlab_12_3.py (±³Àç)
¡ä ´ÙÀ½±Ûcode_12_15_2.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
341    ¦¦❷ lcode_12_23_3.py (±³Àç) 446 02-21
340    ¦¦❷ lcode_12_23_2.py (±³Àç) 365 02-21
339    ¦¦❷ lcode_12_23_1.py (±³Àç) 342 02-21
338 ¦¦❶ llab_12_5.py (±³Àç) 418 02-21
337 ¦¦❶ lcode_12_22.py (±³Àç) 334 02-21
336 ¦¦❶ lcode_12_21.py (±³Àç) 371 02-21
335 ¦¦❶ llab_12_4.py (±³Àç) 333 02-21
334 ¦¦❶ lcode_12_20.py (±³Àç) 344 02-21
333 ¦¦❶ lcode_12_19.py (±³Àç) 323 02-21
332 ¦¦❶ lcode_12_18.py (±³Àç) 324 02-21
331    ¦¦❷ lcode_12_18_2.py (±³Àç) 397 02-21
330    ¦¦❷ lcode_12_18_1.py (±³Àç) 312 02-21
329 ¦¦❶ lcode_12_17.py (±³Àç) 399 02-21
328 ¦¦❶ llab_12_3.py (±³Àç) 319 02-21
327 ¦¦❶ lcode_12_15.py (±³Àç) 307 02-21
326    ¦¦❷ lcode_12_15_2.py (±³Àç) 293 02-21
325    ¦¦❷ lcode_12_15_1.py (±³Àç) 332 02-21
324 ¦¦❶ llab_12_2.py (±³Àç) 326 02-21
323    ¦¦❷ llab_12_2_test.py (±³Àç) 347 02-21
322 ¦¦❶ lcode_12_13.py (±³Àç) 420 02-21

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