-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[BUGFIX] Contrib Expectation tracebacks #6471
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -33,7 +33,7 @@ def is_valid_mic(mic_code: str, df) -> bool: | |||
class ColumnValuesToBeValidMic(ColumnMapMetricProvider): | |||
|
|||
url = "https://www.iso20022.org/sites/default/files/ISO10383_MIC/ISO10383_MIC.csv" | |||
df = pd.read_csv(url) | |||
df = pd.read_csv(url, encoding="cp1250") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From discussion : this is the encoding of the specific CSV we are using in the test (was failing with unicode
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the actual encoding of the file at that URL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you @kenwade4
👇 Click on the image for a new way to code review
Legend |
* develop: (63 commits) [FEATURE] Support to include ID/PK in validation result for each row - SQL (#6448) [BUGFIX] Support slack channel name with webhook also (#6481) Query the database for datetime column splitter defaults (#6482) [MAINTENANCE] Move "Domain" to "great_expectations/core" to avoid circular imports; also add MetricConfiguration tests; and other clean up. (#6484) [MAINTENANCE] Reformat core expectation docstrings (#6423) [MAINTENANCE] Staging for build gallery (#6480) [MAINTENANCE] Move zep method from datasource to data asset. (#6477) [MAINTENANCE] Minor cleanup for better code readability (#6478) [MAINTENANCE] Misc updates to PR template (#6479) [CONTRIB] Add uniqueness expectation (#6473) [RELEASE] 0.15.36 (#6476) Add pretty representations for zep pydantic models (#6472) [BUGFIX] Contrib Expectation tracebacks (#6471) [BUGFIX] Add additional error checking to `ExpectationAnonymizer` (#6467) Add docstring for context.sources.add_postgres (#6459) [MAINTENANCE] fixing type hints in metrics utils module (#6469) [MAINTENANCE] Moving tutorials to great-expectations repo (#6464) [BUGFIX] Patch issue with call to `ExpectationAnonymizer` to ensure `DataContext` init events are captured (#6458) [BUGFIX] Support Table and Column Names Case Non-Sensitivity Relationship Between Snowflake, Oracle, DB2, etc. DBMSs (Upper Case) and SQLAlchemy (Lower Case) Representations (#6450) Add sorters to zep postgres datasource. (#6456) ...
The build_galllery pipeline has not successfully run since some contrib Expectations starting throwing tracebacks during the build process. This fixes them.
Changes proposed in this pull request: