We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
these should be methods that correspond with pandas dataframe operations.
For example, if the user adds a column to a dataframe, also support changing the corresponding schema to account for that change:
df = pd.DataFrame({"a": [1, 2, 3]}) schema = DataFrameSchema([Column("a", PandasDtype.Int)]) df = schema.validate(df) # add a column to the dataframe df["b"] = ["x", "y", "z"] # add column to the dataframe schema schema = schema.add_column(Column("b", PandasDtype.String)) df = schema.validate(df) # same with removing columns df = df.dropna("a", axis=1) schema = schema.remove_column("a") df = schema.validate(df) # or reflecting changes in an existing column df["a"] = df["a"].astype(float) schema = schema.change_column(Column("a", PandasDtype.Float)) df = schema.validate(df)
The text was updated successfully, but these errors were encountered:
this may obfuscate the code and be counter-productive to the entire point of pandera, which is to make the code more readable.
Sorry, something went wrong.
Merge pull request #6 from NeerajMalhotra-QB/feature_pyspark_backend
0778e36
Feature pyspark backend
No branches or pull requests
these should be methods that correspond with pandas dataframe operations.
For example, if the user adds a column to a dataframe, also support changing the corresponding schema to account for that change:
The text was updated successfully, but these errors were encountered: