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

AttributeError: 'FileDataContext' object has no attribute 'create_expectation_suite' #1504

Closed
3 tasks done
hkristof03 opened this issue Nov 15, 2023 · 0 comments · Fixed by #1540
Closed
3 tasks done
Labels
maintance 🛠️ Technical debt

Comments

@hkristof03
Copy link

Current Behaviour

AttributeError: 'FileDataContext' object has no attribute 'create_expectation_suite'

Related to this issue: "[MAINTENANCE] Change all instances of create_expectation_suite to add_expectation_suite in tests, docs, and source code (#7117)"

DataContext objects no longer has a method 'create_expectation_suite'.

Expected Behaviour

Great expectation test suite: "ydata-profiling provides a simple to_expectation_suite() method that returns a Great Expectations ExpectationSuite object which contains a set of Expectations."

Data Description

Dataset can be used from the documentation

Code that reproduces the bug

profile = ProfileReport(
    df, 
    title='Pandas Profiling Report', 
    type_schema=type_schema,
    minimal=True, 
    lazy=False
)
data_context = ge.data_context.DataContext(
    context_root_dir='./gx/'
)
suite = profile.to_expectation_suite(
    data_context=data_context
)

pandas-profiling version

Dependencies

-

OS

No response

Checklist

  • There is not yet another bug report for this issue in the issue tracker
  • The problem is reproducible from this bug report. This guide can help to craft a minimal bug report.
  • The issue has not been resolved by the entries listed under Common Issues.
@fabclmnt fabclmnt added maintance 🛠️ Technical debt and removed needs-triage labels Dec 4, 2023
@fabclmnt fabclmnt moved this to In Progress in YData-profiling roadmap Dec 4, 2023
@fabclmnt fabclmnt moved this from In Progress to Selected for next release in YData-profiling roadmap Dec 4, 2023
@aquemy aquemy linked a pull request Feb 13, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from Selected for next release to Approval in YData-profiling roadmap Feb 13, 2024
fabclmnt added a commit that referenced this issue Apr 5, 2024
* chore(actions): update actions/cache action to v4

* fix: comparison to_json pd.Series encoding error (#1538)

* fix: comparison to_json pd.Series encoding error

* fix(linting): code formatting

* fix: unit test

* fix(linting): code formatting

---------

Co-authored-by: Azory YData Bot <[email protected]>

* closes #1504 - switch create_expectation_suite with add_expectation_suite (#1540)

* fix: timeseries gap comparison failing with no gaps for date index (#1551)

* fix: ts gap comparison failing with no gaps

* fix(linting): code formatting

---------

Co-authored-by: Azory YData Bot <[email protected]>

* chore: readme

* docs: update docs readme.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Barros <[email protected]>
Co-authored-by: Azory YData Bot <[email protected]>
Co-authored-by: Nadav Shatz <[email protected]>
Co-authored-by: Fabiana Clemente <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintance 🛠️ Technical debt
Projects
Status: Approval
Development

Successfully merging a pull request may close this issue.

3 participants