天池数据挖掘课程打卡task01
作者:互联网
1.下载数据
# 下载数据
!wget http://tianchi-media.oss-cn-beijing.aliyuncs.com/dragonball/DM/data.zip
# 解压下载好的数据
!unzip data.zip
2.载入数据
path = './data/'
#载入训练集和测试集;
Train_data = pd.read_csv(path+'train.csv', sep=' ')
Test_data = pd.read_csv(path+'testA.csv', sep=' ')
3.查看数据的基本形状和前5行
print('Train data shape:',Train_data.shape)
print('TestA data shape:',Test_data.shape)
Train_data.head()
标签:sep,task01,shape,Train,数据挖掘,path,打卡,csv,data 来源: https://blog.csdn.net/zwyrz/article/details/120116780