df1 = df_last.groupby(‘연도’)(‘평당 가격’).mean()
fig=plt.figure(figsize=(10.3), dpi=100)
ax = fig.subplots(1,1) # 도화지 설정
df1.plot.line(ax = ax)
t1 = ax.get_xticks() # 현재 그래프의 xticks 가져오기
t2 = (x for x in t1 if x.is_integer()) # t1에는 소수점이 많지만 int일 때만 가져옵니다.
ax.set_xticks(t2) # xticks 재설정
fig.tight_layout()