Python/Pandas

pandas data scatter 그리기 ( 산점도 )

쪼쪼랩 2021. 6. 3. 13:27
반응형

# 산점도(scatter) 그리기

import matplotlib.pylab as plt

plt.scatter( body['weight'], body['height'], label = "data")

 

plt.legend(loc = "best")

plt.xlabel('weight')

plt.ylabel('height')

plt.show()

 

 

반응형