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

Remove copy_dataframe parameter, update requirements with release of Woodwork v0.0.6 #1478

Merged
merged 6 commits into from
Nov 30, 2020

Conversation

angela97lin
Copy link
Contributor

  • Remove use of copy_dataframe parameter which was removed in 0.0.6
  • Update Woodwork requirement to >=0.0.6

@angela97lin angela97lin self-assigned this Nov 30, 2020
@codecov
Copy link

codecov bot commented Nov 30, 2020

Codecov Report

Merging #1478 (038cf38) into main (314cb63) will not change coverage.
The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1478   +/-   ##
=======================================
  Coverage   100.0%   100.0%           
=======================================
  Files         223      223           
  Lines       15024    15025    +1     
=======================================
+ Hits        15017    15018    +1     
  Misses          7        7           
Impacted Files Coverage Δ
evalml/tests/automl_tests/test_automl.py 100.0% <100.0%> (ø)
evalml/utils/gen_utils.py 100.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 314cb63...038cf38. Read the comment docs.

@@ -1776,7 +1776,7 @@ def test_automl_woodwork_user_types_preserved(mock_binary_fit, mock_binary_score
assert arg.semantic_tags['cat col'] == {'category'}
assert arg.logical_types['cat col'] == ww.logical_types.Categorical
assert arg.semantic_tags['num col'] == {'numeric'}
assert arg.logical_types['num col'] == ww.logical_types.WholeNumber
Copy link
Contributor Author

Choose a reason for hiding this comment

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

WholeNumber was removed

Copy link
Contributor

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

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

@angela97lin Thanks for the fix!

Copy link
Contributor

@dsherry dsherry left a comment

Choose a reason for hiding this comment

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

Thanks @angela97lin !

One question: why didn't our dependency update bot catch this? Shouldn't we have one or more unit tests which should have failed with the removal of WholeNumber and/or copy_dataframe?

if isinstance(ww_data, pd.Series):
return ww.DataColumn(ww_data)
return ww.DataTable(ww_data, copy_dataframe=True)

return ww.DataTable(ww_data)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, so is DataTable copying implicitly now? The docs for the constructor just say "create datatable"

Copy link
Contributor Author

@angela97lin angela97lin Nov 30, 2020

Choose a reason for hiding this comment

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

EDIT: Oops, didn't read your comment thoroughly. It doesn't copies implicitly.

See description for alteryx/woodwork#398!

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@bchen1116 bchen1116 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@jeremyliweishih jeremyliweishih left a comment

Choose a reason for hiding this comment

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

very cool!

@angela97lin
Copy link
Contributor Author

@dsherry Not sure why our dependency bot didn't catch this... but our unit tests didn't fail because the last merge happened before woodwork released. Just reran tests on main and they break, as expected: https://app.circleci.com/pipelines/github/alteryx/evalml/7581/workflows/c7130efe-954f-4c2a-a8eb-5e29a90eeedc/jobs/85802

@angela97lin angela97lin merged commit b815f98 into main Nov 30, 2020
@angela97lin angela97lin deleted the ange_remove_copy_dataframe branch November 30, 2020 22:20
@dsherry
Copy link
Contributor

dsherry commented Nov 30, 2020

@angela97lin oh I know why... we don't have woodwork on the allow-list for the deps update bot! Fixing that now :)

@angela97lin
Copy link
Contributor Author

@dsherry Ah, for some reason I thought the list was directly taken from core-requirements.txt 🤦‍♀️ Thanks!

This was referenced Dec 1, 2020
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.

None yet

5 participants