uncommon data for dec 1 and 7
This commit is contained in:
18
scripts/combine56c.py
Normal file
18
scripts/combine56c.py
Normal file
@@ -0,0 +1,18 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user