Comments (3)
the check_input
call should be @check_input(schema)
, or @check_input(schema, 0)
since the second argument is 0-indexed (if obj_getter
is an integer)
from pandera.
not sure if this is important, but positional args should also be a list/tuple and unpacked on function call
def wrapper(function_as_parameter, positional_arguments):
df = function_as_parameter(*positional_arguments)
return df
def function_that_calls_original_function_via_wrapper(df):
new_df = wrapper(
function_as_parameter=original_function,
positional_arguments=(df, ))
from pandera.
I need to investigate more, after playing with my toy example it's now fixed. I need to investigate my original code (which is much more complicated) and figure out if this is actually a pandera issue or not. Closing for now.
from pandera.
Related Issues (20)
- Include drop_invalid_rows attribute in deserialization from_json()
- pydantic validation to raise ValidationError instead of ValueError HOT 2
- Design Data Types Library That Supports Both PySpark & Pandas HOT 9
- Simplify dependency graph HOT 11
- Idea: DataFrame Validation State Caching For Runtime Optimization - Only Validate What Needs To Be Validated! HOT 2
- Idea: Suppport the "&" operation between two DataFrameModels HOT 2
- Is it possible to validate geopandas GeoDataFrame geometry type? HOT 3
- `add_missing_columns` sometimes adds same missing column multiple times HOT 3
- Timezone-aware bug with Multi-Index
- TypeError using Annotated with Category
- Pandas Backend check_dtype function is not compatible with numpy.bool_
- Allow the `in_range` argument in `Field` to accept a tuple HOT 5
- Unescaped description gives error converting Model -> Schema -> Script
- typing_extensions>=4.6 requirement not checked
- Can you use Pydantic Field Aliasing with Pandera / PydanticModel schema definitions? HOT 2
- Inconsistent support of type hints with mypy HOT 3
- Is there a built in way to drop not defined columns at the Schema validation process? HOT 3
- FastAPI OpenAPI spec of an endpoint using Pandera not working with Pydantic v2 HOT 3
- OpenAPI is wrong and Input / Output schemas are missing HOT 4
- Support polars LazyFrame *actual* lazy validation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandera.