Relative Content

Tag Archive for pythonpattern-matchingstreamlit

My code keeps finding pattern matches that do not exist

I wrote code in Python for an application in Streamlit. This specific piece of my code matches tag numbers from the Excel file against the patterns defined for “first_half” and “second_half” tag numbers in the PDF data (which is a processed PDF file which gets made into text). However, when I run my application, the match dataframe contains PDF data that cannot exist. It finds pattern matches which do not exist in the PDF file (and thus wrongfully makes matches with the Excel tagnumbers).