imsciences 0.6.2.8__tar.gz → 0.6.2.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/PKG-INFO +1 -1
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/imsciences/datafunctions.py +2 -2
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/imsciences.egg-info/PKG-INFO +1 -1
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/setup.py +1 -1
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/README.md +0 -0
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/imsciences/__init__.py +0 -0
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/imsciences.egg-info/PKG-INFO-IMS-24Ltp-3 +0 -0
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/imsciences.egg-info/SOURCES.txt +0 -0
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/imsciences.egg-info/dependency_links.txt +0 -0
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/imsciences.egg-info/requires.txt +0 -0
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/imsciences.egg-info/top_level.txt +0 -0
- {imsciences-0.6.2.8 → imsciences-0.6.2.9}/setup.cfg +0 -0
|
@@ -763,8 +763,8 @@ class dataprocessing:
|
|
|
763
763
|
pandas.DataFrame: DataFrame with a new column containing the look up table results.
|
|
764
764
|
"""
|
|
765
765
|
|
|
766
|
-
# Create regex pattern from the dictionary
|
|
767
|
-
regex_pattern = "|".join(re.escape(key) for key in to_find_dict.keys())
|
|
766
|
+
# Create regex pattern with word boundaries from the dictionary
|
|
767
|
+
regex_pattern = "|".join(r'\b' + re.escape(key) + r'\b' for key in to_find_dict.keys())
|
|
768
768
|
|
|
769
769
|
# Preprocess DataFrame if multiple columns
|
|
770
770
|
if len(col_names) > 1:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|