import numpy as np import pandas as pd from matplotlib import pyplot as plt data = pd.read_csv('file.csv',encoding = 'gbk') data.info() #查看数据类型 一、数据合并 1、堆叠数据 df1 = data.iloc[:1500,:] ##取出detail1前1500行数据 df2 = data.iloc[1500:,:] ##取出detail1的1500后的数据 pd.concat([df1,df2],axis=1,join='inner')