利用俩个函数。
data.head(n)输出头部前n行的数据。
data.tail(n)输出末尾的n行数据。
data.head(n).append(data.tail(n))
在头部前n行中插入尾部后n行的数据。