Skip to content

Commit

Permalink
convert prediction_time to timestamp when meds_format is enabled (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoPang authored Dec 2, 2024
1 parent d30b1ac commit 26a65a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cehrbert_data/cohorts/spark_app_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ def build(self):
"index_date", "prediction_time"
).withColumnRenamed(
"label", "boolean_value"
).withColumn(
"prediction_time", F.to_timestamp("prediction_time")
).withColumn(
"boolean_value", F.col("boolean_value").cast("boolean")
)
Expand Down

0 comments on commit 26a65a6

Please sign in to comment.