Skip to content

Commit

Permalink
update DataFrameModel in readme
Browse files Browse the repository at this point in the history
Signed-off-by: Niels Bantilan <[email protected]>
  • Loading branch information
cosmicBboy committed Jul 18, 2023
1 parent a7bffd5 commit 57d8269
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ from pandera.typing import Series

class Schema(pa.DataFrameModel):

column1: Series[int] = pa.Field(le=10)
column2: Series[float] = pa.Field(lt=-1.2)
column3: Series[str] = pa.Field(str_startswith="value_")
column1: int = pa.Field(le=10)
column2: float = pa.Field(lt=-1.2)
column3: str = pa.Field(str_startswith="value_")

@pa.check("column3")
def column_3_check(cls, series: Series[str]) -> Series[bool]:
Expand Down
6 changes: 3 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ by `dataclasses <https://docs.python.org/3/library/dataclasses.html>`_ and

class Schema(pa.DataFrameModel):

column1: Series[int] = pa.Field(le=10)
column2: Series[float] = pa.Field(lt=-1.2)
column3: Series[str] = pa.Field(str_startswith="value_")
column1: int = pa.Field(le=10)
column2: float = pa.Field(lt=-1.2)
column3: str = pa.Field(str_startswith="value_")

@pa.check("column3")
def column_3_check(cls, series: Series[str]) -> Series[bool]:
Expand Down

0 comments on commit 57d8269

Please sign in to comment.