Skip to content

Commit

Permalink
Use pandera.DataFrameModel (#1703)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario and eapolinario committed Jul 4, 2024
1 parent 5aee3d0 commit be6659d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@


# %%
class RawData(pa.SchemaModel):
class RawData(pa.DataFrameModel):
age: Series[int] = pa.Field(in_range={"min_value": 0, "max_value": 200})
sex: Series[int] = pa.Field(isin=[0, 1])
cp: Series[int] = pa.Field(
Expand Down
2 changes: 1 addition & 1 deletion examples/pandera_plugin/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ flytekitplugins-pandera>=0.16.0
hypothesis
joblib
pandas
pandera>=0.7.0
pandera>=0.20.0
scikit-learn

0 comments on commit be6659d

Please sign in to comment.