18 lines
581 B
Python
18 lines
581 B
Python
import pandas as pd
|
|
import os
|
|
import numpy as np
|
|
import matplotlib.pyplot as plt
|
|
|
|
curdir = os.getcwd()
|
|
path_delim = '/'
|
|
df1 = pd.read_excel(curdir + path_delim + "data/Dec07b.xlsx", sheet_name="op")
|
|
df2 = pd.read_excel(curdir + path_delim + "data/Dec07.xlsx", sheet_name="op")
|
|
|
|
uncommon_df = pd.concat([df1, df2, df2]).drop_duplicates(keep=False)
|
|
|
|
print(uncommon_df)
|
|
|
|
writer = pd.ExcelWriter(curdir + path_delim + "data/Dec07c.xlsx", engine = 'openpyxl')
|
|
uncommon_df.to_excel(writer, sheet_name = 'op', index=False)
|
|
uncommon_df.to_excel(writer, sheet_name = "count")
|
|
writer.close() |