Skip to content

Rename LabelTimes.name to LabelTimes.label_name#126

Merged
frances-h merged 6 commits into
masterfrom
rename-name
Apr 23, 2020
Merged

Rename LabelTimes.name to LabelTimes.label_name#126
frances-h merged 6 commits into
masterfrom
rename-name

Conversation

@frances-h

Copy link
Copy Markdown
Contributor

Change name attribute on LabelTimes to label_name to avoid TypeError when converting to a Dask dataframe

Resolves #125

@codecov

codecov Bot commented Apr 17, 2020

Copy link
Copy Markdown

Codecov Report

Merging #126 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #126   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines          845       845           
=========================================
  Hits           845       845           
Impacted Files Coverage Δ
composeml/label_maker.py 100.00% <100.00%> (ø)
composeml/label_plots.py 100.00% <100.00%> (ø)
composeml/label_times.py 100.00% <100.00%> (ø)
composeml/tests/test_featuretools.py 100.00% <100.00%> (ø)
...seml/tests/test_label_transforms/test_threshold.py 100.00% <100.00%> (ø)

@rwedge

rwedge commented Apr 17, 2020

Copy link
Copy Markdown
Contributor

Since this is renaming a public attribute we should mention this as a breaking change in the changelog

kmax12
kmax12 previously approved these changes Apr 20, 2020

@kmax12 kmax12 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.

The API change is good with me. I'll leave it to @jeff-hernandez and @rwedge to make sure the code checks out

Comment thread docs/source/changelog.rst

@jeff-hernandez jeff-hernandez 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.

The cell 16 in this notebook needs to be updated.

y = fm.pop(lt.name)

Otherwise, looks good to merge.

@frances-h frances-h merged commit 8a2c675 into master Apr 23, 2020
@frances-h frances-h deleted the rename-name branch April 23, 2020 13:49
@jeff-hernandez jeff-hernandez mentioned this pull request Apr 23, 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.

LabelTimes name attribute incompatible with Dask

4 participants