# -*-coding:utf-8 -*-
import pandas as pd
import matplotlib.pyplot as plt
pd.options.display.max_columns=777
homes = pd.read_excel("C:/Users/asus/Downloads/pandas/014/home_data.xlsx")
# print(homes.head())
# homes.price.plot.hist(bins=100)
# plt.xticks(range(0,max(homes.price),100000),fontsize=8,rotation=90)
# plt.show()
# homes.squeeze()
#数据相关性
print(homes.corr())
pandas-matplotlib密度图-数据相关性
最新推荐文章于 2022-09-30 06:45:00 发布