【数据分析&数据挖掘】相同数据结构互相填充
作者:互联网
1 import pandas as pd 2 3 # 加载数据 4 data_1 = pd.read_excel("./填充数据.xlsx", sheetname=0) 5 data_2 = pd.read_excel("./填充数据.xlsx", sheetname=1) 6 7 print("data_1: \n", data_1) 8 print("data_2: \n", data_2) 9 10 data_1 = data_1.combine_first(data_2) 11 12 print("data_1: \n", data_1)
标签:数据分析,填充,sheetname,excel,print,pd,数据挖掘,数据结构,data 来源: https://www.cnblogs.com/Tree0108/p/12116136.html