selected_rows = (1980 <= ns_book7['발행년도']) & (ns_book7['발행년도'] <= 2022) plt.hist(ns_book7.loc[selected_rows, '발행년도']) plt.show()