摘要: plt.figure(figsize=(9, 6)) y_train_pred_ridge = ridge.predict(X_train[features_without_ones]) plt.scatter(y_train_pred_ridge, y_train_pred_ridge - y_t 阅读全文
posted @ 2021-01-28 23:53 ziyuliu 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 文件读取与存储 我们的数据大部分存在于文件当中,所以pandas会支持复杂的IO操作,pandas的API支持众多的文件格式,如CSV、SQL、XLS、JSON、HDF5。 CSV 读取:read_csv pandas.read_csv(filepath_or_buffer, sep =',', u 阅读全文
posted @ 2021-01-28 23:04 ziyuliu 阅读(601) 评论(0) 推荐(0) 编辑