uncommon data for dec 1 and 7

This commit is contained in:
Pritimay Sarkar
2023-12-15 10:17:52 +05:30
parent 7bcdbff123
commit 590c7494bd
7 changed files with 256 additions and 0 deletions

18
scripts/combine56c.py Normal file
View 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()