import pandas as pd df = pd.read_excel("http://kanggc.iptime.org/book/data/sample1-n.xlsx") df # 두 개의 sub data를 생성 df1 = df.iloc[0:10,0:3] df1 df2 = df.iloc[10:17,0:3] df2 print("Data Frame of df is : ",f'\n{df}\n') print("Data Frame of df1 is : ",f'\n{df1}\n') print("Data Frame of df2 is : ",f'\n{df2}\n')