pandas中DataFrame的常用操作
数据集的信息使用info()方法输出数据集的信息举例import numpy as npimport matplotlib.pyplot as pltimport matplotlibimport pandas as pdimport sklearn# matplotlib.rc("font",family='FangSong')df = pd.read_csv('data\\boston.csv')# 读取数据集df = df.sample(500, replace=Fal