Move code to code dir
Follow yoda
This commit is contained in:
parent
e18669065e
commit
1084d78c3e
15 changed files with 12 additions and 5 deletions
10
code/tests/test_validate_date_col.py
Normal file
10
code/tests/test_validate_date_col.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import dataframely as dy
|
||||
import polars as pl
|
||||
|
||||
|
||||
class DateSchema(dy.Schema):
|
||||
date: dy.Date = dy.Date(nullable=False)
|
||||
|
||||
@dy.rule()
|
||||
def minimum_starting_date() -> pl.Expr:
|
||||
return pl.col("date") > pl.date(2018, 5, 8)
|
||||
Loading…
Add table
Add a link
Reference in a new issue