Skip to content

Fix bug with column names in SklearnTransform #398

Merged
merged 11 commits into from Dec 22, 2021
Merged

Conversation

Mr-Geekman
Copy link
Contributor

@Mr-Geekman Mr-Geekman commented Dec 21, 2021

IMPORTANT: Please do not create a Pull Request without creating an issue first.

Before submitting (must do checklist)

  • Did you read the contribution guide?
  • Did you update the docs? We use Numpy format for all the methods and classes.
  • Did you write any new necessary tests?
  • Did you update the CHANGELOG?

Type of Change

  • Examples / docs / tutorials / contributors update
  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves an existing feature)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Proposed Changes

Related Issue

#377

Closing issues

Closes #377

@codecov-commenter
Copy link

codecov-commenter commented Dec 21, 2021

Codecov Report

Merging #398 (fff42b4) into master (4ea025c) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #398      +/-   ##
==========================================
+ Coverage   87.02%   87.09%   +0.07%     
==========================================
  Files          98       98              
  Lines        4964     4945      -19     
==========================================
- Hits         4320     4307      -13     
+ Misses        644      638       -6     
Impacted Files Coverage Δ
etna/transforms/power.py 100.00% <ø> (+7.14%) ⬆️
etna/transforms/scalers.py 100.00% <ø> (+7.14%) ⬆️
etna/core/__init__.py 100.00% <100.00%> (ø)
etna/core/mixins.py 95.65% <100.00%> (+0.91%) ⬆️
etna/transforms/sklearn.py 96.47% <100.00%> (+0.69%) ⬆️
etna/transforms/datetime_flags.py 100.00% <0.00%> (ø)

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 4ea025c...fff42b4. Read the comment docs.

@Mr-Geekman Mr-Geekman marked this pull request as ready for review December 21, 2021 09:17
for i, column in enumerate(in_column):
# find relevant column name in transformed_df
column_multi = [x for x in new_columns if column in x][0]
column_multi = {key: value for key, value in zip(transform.in_column, transform.out_columns)}[column]
Copy link
Collaborator

Choose a reason for hiding this comment

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

May be it is better to place it out of cicle

@alex-hse-repository alex-hse-repository merged commit 7e43eb9 into master Dec 22, 2021
martins0n pushed a commit that referenced this pull request Dec 23, 2021
Fix bug with column names in `SklearnTransform`
alex-hse-repository added a commit that referenced this pull request Dec 24, 2021
Fix bug with column names in `SklearnTransform`
alex-hse-repository added a commit that referenced this pull request Dec 28, 2021
Fix bug with column names in `SklearnTransform`
alex-hse-repository added a commit that referenced this pull request Dec 28, 2021
* Merge pull request #398 from tinkoff-ai/issue-377

Fix bug with column names in `SklearnTransform`

* Add missing import
@martins0n martins0n deleted the issue-377 branch January 21, 2022 09:40
alex-hse-repository added a commit that referenced this pull request Jan 31, 2022
* Merge pull request #398 from tinkoff-ai/issue-377

Fix bug with column names in `SklearnTransform`

* Add missing import
alex-hse-repository added a commit that referenced this pull request Feb 8, 2022
* Merge pull request #398 from tinkoff-ai/issue-377

Fix bug with column names in `SklearnTransform`

* Add missing import
alex-hse-repository added a commit that referenced this pull request Feb 14, 2022
* Merge pull request #398 from tinkoff-ai/issue-377

Fix bug with column names in `SklearnTransform`

* Add missing import
alex-hse-repository added a commit that referenced this pull request Feb 15, 2022
* Merge pull request #398 from tinkoff-ai/issue-377

Fix bug with column names in `SklearnTransform`

* Add missing import
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] SklearnTransform creates columns with the same names
3 participants