Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate transformers argument in DataFrameSchema #291

Merged
merged 1 commit into from
Oct 18, 2020
Merged

Conversation

cosmicBboy
Copy link
Collaborator

fixes #275. This PR deprecates the transformer functionality in DataFrameSchema objects. The rationale is that pandera is primarily responsible for data validation and not data manipulation. In the future pandera might offer some parsing capabilities for things like filling in missing data or handling data that don't pass validation checks, for example see #252.

However, the transformer functionality can simply be achieved by applying the transformation function after schema validation:

schema(df).pipe(transformer)
# or
transformer(schema(df))

@cosmicBboy cosmicBboy merged commit 89c3c91 into master Oct 18, 2020
@cosmicBboy cosmicBboy deleted the feature/275 branch October 20, 2020 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate transformer functionality in DataFrameSchema
1 participant