实验二 Pandas 统计分析基础
任务 1 读取 mtcar 数据并实现以下操作
查看 mtcar 数据集的元素的个数、维度、大小等信息,输出表的列名。import pandas as pd
mtcars=pd.read_csv(D:\\桌面\\实验二\\data\\mtcars.csv)
print(mtcars 的元素个数为:\n,mtcars.size) print(mtcars 的元素维度为:\n,mtcars.ndim) print(mtcars 的元素大小为:\n,mtcars.shape) print(mtcars 的表的列名为:\n,mtcars.columns)
使用 de
原创力文档

文档评论(0)