feat: support gpu

This commit is contained in:
2025-09-29 21:07:23 +02:00
parent 9e35f95107
commit a1d500830b
15 changed files with 661 additions and 85 deletions
+9 -3
View File
@@ -19,9 +19,15 @@ class RegionMapper:
return (
series.str.upper()
.str.strip()
.apply(lambda x: unicodedata.normalize("NFKD", x)
.encode("ascii", errors="ignore")
.decode("utf-8") if isinstance(x, str) else x)
.apply(
lambda x: (
unicodedata.normalize("NFKD", x)
.encode("ascii", errors="ignore")
.decode("utf-8")
if isinstance(x, str)
else x
)
)
)
@staticmethod