Skip to content

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

Merged
angela97lin merged 6 commits intomainfrom
ange_remove_copy_dataframe
Nov 30, 2020
Merged

Remove copy_dataframe parameter, update requirements with release of Woodwork v0.0.6#1478
angela97lin merged 6 commits intomainfrom
ange_remove_copy_dataframe

Conversation

@angela97lin
Copy link
Copy Markdown
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
Copy Markdown

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.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

Comment thread evalml/utils/gen_utils.py
return ww.DataColumn(ww_data)
return ww.DataTable(ww_data, copy_dataframe=True)

return ww.DataTable(ww_data)
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

5 participants