Skip to content

remove get_values() from test_es.py - #820

Merged
rwedge merged 5 commits into
alteryx:masterfrom
systemshift:replace_get_values_with_to_numpy
Nov 20, 2019
Merged

rwedge merged 5 commits into
alteryx:masterfrom
systemshift:replace_get_values_with_to_numpy

Conversation

@systemshift

Copy link
Copy Markdown
Contributor

Pull Request Description

Replace deprecating get_values with to_numpy() to remove warnings when running tests


After creating the pull request: in order to pass the changelog_updated check you will need to update the "Future Release" section of docs/source/changelog.rst to include this pull request.

instance_vals=[0, 1, 2, 3, 4],
time_last=datetime(2011, 4, 9, 10, 30, 2 * 6))

assert df['id'].get_values().tolist() == [0, 1, 2]

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.

does df['id'].tolist() work as well? It would be simpler

@codecov-io

codecov-io commented Nov 20, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #820 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #820   +/-   ##
=======================================
  Coverage   98.12%   98.12%           
=======================================
  Files         119      119           
  Lines       10875    10875           
=======================================
  Hits        10671    10671           
  Misses        204      204
Impacted Files Coverage Δ
featuretools/tests/entityset_tests/test_es.py 100% <100%> (ø) ⬆️

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 853091d...ddd2393. Read the comment docs.

@systemshift systemshift changed the title replace get_values() with to_numpy() remove get_values() from test_es.py Nov 20, 2019

@rwedge rwedge left a comment

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.

Looks good

@rwedge
rwedge merged commit 205fa1b into alteryx:master Nov 20, 2019
@systemshift
systemshift deleted the replace_get_values_with_to_numpy branch November 21, 2019 16:06
@rwedge rwedge mentioned this pull request Nov 30, 2019
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.

3 participants