fig, ax = plt.subplots(1, 2)
df1['Win %'].plot(ax=ax[0])
hero.plot(ax=ax[1])
ax[0].set_title('Data Frame 1')
ax[0].set_xlabel('X Axis')
ax[0].set_ylabel('Y Axis')
ax[1].set_title('Data Frame 2')
ax[1].set_xlabel('X Axis')
ax[1].set_ylabel('Y Axis')
ax[1].legend()
plt.show()
'DataScience > Python' 카테고리의 다른 글
이미지 url을 가져올때 없는 이미지인지 체크하는 방법 (0) | 2022.12.23 |
---|---|
파이썬 차트 라이브러리 추천 plotly (커스터 마이징이 좋다) (0) | 2022.12.23 |
Streamlit 이미지 크기를 조절하기 (0) | 2022.12.22 |
Pandas 행과 열의 문자열인덱스를 숫자로 가져오는 방법 (0) | 2022.12.16 |
문자열로 이루어진 리스트를 피클로 저장할때 (0) | 2022.12.15 |