Hi! First of all, thank you for this script! It was exactly what I needed.
I ran into a small issue with newer versions of pandas (2.x+) where applymap has been removed. Changing it to map on line 9 of data_processing.py fixes it:
Before
df[['ISBN', 'ISBN13']] = df[['ISBN', 'ISBN13']].applymap(lambda x: re.sub(r'\D', '', str(x)))
After
df[['ISBN', 'ISBN13']] = df[['ISBN', 'ISBN13']].map(lambda x: re.sub(r'\D', '', str(x)))
Hope this helps anyone else running into the same thing!
Hi! First of all, thank you for this script! It was exactly what I needed.
I ran into a small issue with newer versions of pandas (2.x+) where applymap has been removed. Changing it to map on line 9 of data_processing.py fixes it:
Before
df[['ISBN', 'ISBN13']] = df[['ISBN', 'ISBN13']].applymap(lambda x: re.sub(r'\D', '', str(x)))After
df[['ISBN', 'ISBN13']] = df[['ISBN', 'ISBN13']].map(lambda x: re.sub(r'\D', '', str(x)))Hope this helps anyone else running into the same thing!