Hi Mehdi Doubiani
Thank you for your responsešŸ™‚,

Yes you are right, the / , :characters can be replaced with replaceand it should work fine:

file_name = fā€{row.loc[ā€˜Book Title’]}_{row.loc[ā€˜Edition’]}ā€.replace(ā€˜/’,’-’).replace(ā€˜:’,’-’)

I will also update the code in the article. šŸ™‚

Joe

M.Sc. in Photogrammetry and Geoinformatics. šŸ“šLinkedIn: https://www.linkedin.com/in/thunyatheps/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store