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

Support for schemas smaller than the dataframe. #17

Closed
wants to merge 1 commit into from
Closed

Support for schemas smaller than the dataframe. #17

wants to merge 1 commit into from

Conversation

oshribr
Copy link

@oshribr oshribr commented Sep 7, 2018

issue #12

@multimeric
Copy link
Owner

Good start. Would you mind adding a test for this?

@@ -29,12 +29,14 @@ def __init__(self, columns: typing.Iterable[Column], ordered: bool = False):
self.columns = list(columns)
self.ordered = ordered

def validate(self, df: pd.DataFrame, columns: typing.List[str] = None) -> typing.List[ValidationWarning]:
def validate(self, df: pd.DataFrame, columns: typing.List[str] = None, allow_sub_schema: bool = False) -> \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please split this over multiple lines so it doesn't need a linebreak escape

@abhilasharevur
Copy link

abhilasharevur commented Dec 20, 2022

This option allow_sub_schema is not added to the master branch. Any plans of adding similar functionality?

This pull request was closed.
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.

3 participants