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

Fix warnings encountered during unit tests #2427

Open
thehomebrewnerd opened this issue Dec 22, 2022 · 0 comments
Open

Fix warnings encountered during unit tests #2427

thehomebrewnerd opened this issue Dec 22, 2022 · 0 comments

Comments

@thehomebrewnerd
Copy link
Contributor

Currently when running the full test suite over 17,000 warnings are generated:

2417 passed, 23 skipped, 87 xfailed, 17879 warnings

Some of these warning may be expected, but some should be addressed. This may require mutiple PRs, but we should investigate these warnings and implement fixes where possible. Of immediate concern are the deprecation warnings that might cause tests to break when new versions of dependencies are released:

featuretools/tests/primitive_tests/test_num_consecutive.py::TestNumConsecutiveLessMean::test_inf
  /dev/featuretools/featuretools/tests/primitive_tests/test_num_consecutive.py:259: FutureWarning: The series.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
    x = x.append(pd.Series([np.inf]))

This Dask warning also appears to be quite common and perhaps of concern.

featuretools/tests/primitive_tests/test_transform_features.py::test_comparisons_with_ordinal_invalid_inputs[dask_es]
  /dev/featuretools/env/lib/python3.9/site-packages/dask/dataframe/core.py:4134: UserWarning:
  You did not provide metadata, so Dask is running your function on a small dataset to guess output types. It is possible that Dask will guess incorrectly.
  To provide an explicit output types or to silence this message, please provide the `meta=` keyword, as described in the map or apply function that you are using.
    Before: .apply(func)
    After:  .apply(func, meta=('priority_level <= ordinal_invalid', 'object'))

    warnings.warn(meta_warning(meta))
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

No branches or pull requests

1 participant