I am not good in python please forgive me for this question but I need to create a function which does the following thing:
- Create multiple data frames from multiple excel tab/sheet present in a single xlsx file and be named on the sheet name.
- The columns' values should be concatenated and checked if there is no duplicate value.
- if the concat value has a duplicate then it should be told as yes/No in another column.
- all the dataframes then should be written into a single workbook as different worksheets inside. values inside () are columns for better understanding
example:
sheet1
(a) (b) (c) (d)
a1 b1 c1 d1
a2 b2 c2 d2
result:
(c) (d) (concate) (is duplicate)
c1 d1 c1_d1 no
c2 d2 c2_d2 no
sheet2
(a) (b) (e) (f)
a3 b3 e1 f1
a4 b4 e1 f1
a5 b5 e2 f2
a6 b6 e4 f4
a7 a8 e4 f5
result:
(e) (f) (concat) (has duplicate)
e1 f1 e1_f1 yes
e2 f2 e2_f2 no
e4 f4 e4_f4 no
e4 f5 e4_f5 no