9 lines
287 B
Python
9 lines
287 B
Python
import polars as pl
|
|
import polars_hash as pl_hash
|
|
|
|
pl.scan_parquet("records.parquet").with_columns(
|
|
pl.col("user_id").cast(pl.String).add("Lt2N5xgjJOqRsT5qVt7wWYw6SqOPZDI7")
|
|
).with_columns(pl_hash.col("user_id").chash.sha2_256()).collect().write_parquet(
|
|
"records_pub.parquet"
|
|
)
|