Python Forum
highlight the columns and capture
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
highlight the columns and capture
#1
Hi Experts,
I have written a Python script (3.8) which is going to capture Oracle SQL query from .log file ( as per report .log files are going to generate) and move the .sql to PRE.sql and POST.sql. then it will connect to Oracle DB and execute these queries and save the data to pre_data.csv and post_data.csv ( here am just providing names normally). then compare these 2 .csv files and extract the unique data from these two files to diff_data.xlsx files.
attached the script for reference. Now need help to add additional logic to below to teh attached script.
1. Add Audit columns MATCH_CASE, ROW_PRESENT, SYSTIMESTAMP to the diff_data.xlsx
2. highlight the columns where the data mismatch is there in this excel
3. capture these highlighted columns and place it in MATCH_CASE column with comma separated.
4. rename the column names with proper business names

Thanks
Amy
buran write Mar-24-2023, 04:02 PM:
Added code in the post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to compare two columns and highlight the unique values of column two using pandas shubhamjainj 0 4,301 Feb-24-2020, 06:19 AM
Last Post: shubhamjainj
  Highlight and remove specific string of text itsalmade 5 3,559 Dec-11-2019, 11:58 PM
Last Post: micseydel
  How to highlight the cell SriRajesh 3 3,010 Dec-08-2019, 02:17 PM
Last Post: michael1789
  [ library recommendation ] search & highlight target texts in PDF? smallabc 1 2,233 Nov-27-2019, 10:40 AM
Last Post: Larz60+
  Highlight text in pdf pramodb35 1 2,911 Aug-03-2019, 02:58 AM
Last Post: Larz60+
  Highlight/Underline a string | ValueError: zero length field name in format searching1 1 3,032 Jul-01-2019, 03:06 AM
Last Post: metulburr
  How to highlight html using python Prince_Bhatia 2 3,601 May-03-2019, 11:31 AM
Last Post: Prince_Bhatia

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020