1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅͰúÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 12-2 ÆÇ´Ù½º·Î ¿ï¸ªµµÀÇ ¹Ù¶÷ ¼¼±â ºÐ¼®Çϱâ, 322ÂÊ # import pandas as pd import matplotlib.pyplot as plt weather = pd.read_csv('d:/data/weather.csv', encoding='CP949') weather['month'] = pd.DatetimeIndex(weather['ÀϽÃ']).month # ´ÙÀ½°ú °°Àº groupby() ±â´ÉÀ» »ç¿ëÇØ¼ ´õ °£´ÜÇÑ ÄÚµå ÀÛ¼º°¡´É means = weather.groupby('month').mean() #plt.plot(means['Æò±Õdz¼Ó'], 'red') means['Æò±Õdz¼Ó'].plot() plt.show() | cs |