1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # 12.10 µ¥ÀÌÅÍ °¡½ÃÈÇϱâ, 317ÂÊ # import pandas as pd import matplotlib.pyplot as plt countries_df = pd.read_csv('d:/data/countries.csv', index_col = 0) # pie ¸ð¾ç Â÷Æ®¸¦ »ç¿ëÇÒ ¶§ ÇÊ¿äÇÑ ÄÚµå countries_df['population'].plot(kind='pie') # bar Â÷Æ®¸¦ »ç¿ëÇÒ ¶§ ÇÊ¿äÇÑ ÄÚµå #countries_df['population'].plot(kind='bar', color=('b', 'darkorange', 'g', 'r', 'm') ) plt.show() | cs |