Niels Bantilan

Results 492 comments of Niels Bantilan

Hi @ghilesmeddour did you check out https://pandera.readthedocs.io/en/stable/pydantic_integration.html? You can currently use pydantic types at the `DataFrameSchema` level, so pydantic models whose fields are scalar types should validate your dataframe in...

thanks for answering @dantheand ! > I agree that it would be great and intuitive to be able to pass the types directly to pa.Series Indeed, this would be the...

hey @KyleRConway thanks for taking a closer look at this! This issue definitely needs some clarification/edits. The issue you're experiencing is pretty much the motivation behind improving the docs to...

this use case makes sense, ping me when you need a review 👀!

hi @BigNerd ! we'll need to update this function so that the json schema representation contains the `description` and other metadata like `title`, etc. https://github.com/unionai-oss/pandera/blob/master/pandera/json_schema.py Would you be open to...

This is awesome @clstaudt ! I think this use case is probably pretty common and I'd love to fold this into the pandera codebase. Here's a proposal for how to...

@clstaudt yep! that would be the user-facing API. > Can you integrate this feature based on my code example? If you have a capacity to make a PR contributation that...

hmm, looks like a nasty bug... I can take a look next week after I'm back from vacation :)

hah, found the issue! https://github.com/unionai-oss/pandera/blob/master/pandera/strategies.py#L1114-L1116 ```python strategy = strategy.map( lambda df: df if df.empty else df.astype(col_dtypes) ) ``` Not sure why the `df.empty` conditional in there, but it's changed to...