feat: export regions

This commit is contained in:
mokurin000 committed 2025-08-04 02:01:39 +08:00
1 parent a3ba321e5e
commit 9d3ca2fe76
3 files changed
+11 -1

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import polars as pl
from hasher import salted_hash_userid
pl.scan_parquet("regions.parquet").with_columns(
pl.col("user_id").map_elements(salted_hash_userid, return_dtype=pl.String)
).collect().write_parquet("regions_pub.parquet")