Skip to content

Fix for pandas 2.x compatibility #1

Description

@damlaMtn

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions