a-r-j / graphein

Protein Graph Library
https://graphein.ai/
MIT License
994 stars 125 forks source link

eliminate FutureWarning about Pandas #359

Closed StevenAZy closed 7 months ago

StevenAZy commented 7 months ago

What does this implement/fix? Explain your changes

In Pandas 1.2.0 and later, The default value of regex for Series.str.replace() will change from True to False. So we need use regular expressions explicitly now, otherwise a warningFutureWarning: The default value of regex will change from True to False in a future version will occur.

a-r-j commented 7 months ago

Hi @StevenAZy, thanks for the contribution. Will merge this ASAP once tests pass. Appreciate it!

sonarcloud[bot] commented 7 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication