Skip to content

Commit

Permalink
fixd bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
linjing-lab committed Sep 22, 2023
1 parent 9ac40df commit f2c9345
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 2,784 deletions.
2 changes: 1 addition & 1 deletion user_guide/src/examples/testing/schema_assert.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
trip_duration = (pl.col("dropoff_datetime") - pl.col("pickup_datetime")).dt.seconds() / 3600

assert (
pl.scan_csv("data/yellow_tripdata_2010-01.csv", parse_dates=True)
pl.scan_csv("data/yellow_tripdata_2010-01.csv", try_parse_dates=True)
.with_columns(trip_duration.alias("trip_duration"))
.filter(pl.col("trip_duration") > 0)
.groupby(["vendor_id"])
Expand Down
Loading

0 comments on commit f2c9345

Please sign in to comment.