pandas——画图

 

 

import pandas as pd
import matplotlib.pyplot as plt
dataflair = pd.read_csv("https://download.mlcc.google.com/mledu-datasets/california_housing_train.csv", sep=",")
dataflair['households'].hist()
dataflair.plot.line(x="population",y='median_income',figsize=(8,6))
plt.show()

 

posted @ 2021-03-21 18:25  朵朵奇fa  阅读(62)  评论(0编辑  收藏  举报