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

fix: table.keep_only_columns now maps column names to correct data #194

Merged

Conversation

Marsmaennchen221
Copy link
Contributor

Closes #115 .

Summary of Changes

Fixed table.keep_only_columns to rearrange the column names correctly
Fixed grammar in two docs

@Marsmaennchen221 Marsmaennchen221 requested a review from a team as a code owner April 16, 2023 18:09
@Marsmaennchen221 Marsmaennchen221 linked an issue Apr 16, 2023 that may be closed by this pull request
@lars-reimann
Copy link
Member

lars-reimann commented Apr 16, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 3 0 0 0.72s
✅ PYTHON mypy 3 0 1.57s
✅ PYTHON ruff 3 0 0 0.04s
✅ REPOSITORY git_diff yes no 0.02s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@codecov
Copy link

codecov bot commented Apr 16, 2023

Codecov Report

Merging #194 (33b8966) into main (da928ea) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 33b8966 differs from pull request most recent head e9accc6. Consider uploading reports for the commit e9accc6 to get more accurate results

@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
- Coverage   93.89%   93.88%   -0.01%     
==========================================
  Files          42       42              
  Lines        1457     1455       -2     
==========================================
- Hits         1368     1366       -2     
  Misses         89       89              
Impacted Files Coverage Δ
src/safeds/data/tabular/containers/_table.py 92.90% <100.00%> (-0.05%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@lars-reimann lars-reimann left a comment

Choose a reason for hiding this comment

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

The title of the PR should also be changed, so a good changelog entry can be created:

  • It's not necessary to link to the issue in the title, that's what the Closes #115 is for.
  • The title should be something that a user can understand
  • It's not necessary to point out in the title that tests were added that reproduce the bug. That is implied.

It could be something like "fix: table.keep_only_columns now maps column names to correct data".

@lars-reimann lars-reimann self-requested a review April 16, 2023 19:47
Co-authored-by: Lars Reimann <mail@larsreimann.com>
@Marsmaennchen221 Marsmaennchen221 changed the title fix: Resolved bug #115 and added test for this explicit behaviour fix: table.keep_only_columns now maps column names to correct data Apr 16, 2023
@lars-reimann lars-reimann force-pushed the 115-tablekeep_only_columns-maps-column-names-to-wrong-data branch from 33b8966 to aabc109 Compare April 16, 2023 20:28
@lars-reimann lars-reimann force-pushed the 115-tablekeep_only_columns-maps-column-names-to-wrong-data branch from aabc109 to 2ae3c0d Compare April 16, 2023 20:28
Copy link
Member

@lars-reimann lars-reimann left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@lars-reimann lars-reimann merged commit 459ab75 into main Apr 16, 2023
5 checks passed
@lars-reimann lars-reimann deleted the 115-tablekeep_only_columns-maps-column-names-to-wrong-data branch April 16, 2023 20:33
lars-reimann pushed a commit that referenced this pull request Apr 21, 2023
## [0.11.0](v0.10.0...v0.11.0) (2023-04-21)

### Features

* `OneHotEncoder.inverse_transform` now maintains the column order from the original table ([#195](#195)) ([3ec0041](3ec0041)), closes [#109](#109) [#109](#109)
* add `plot_` prefix back to plotting methods ([#212](#212)) ([e50c3b0](e50c3b0)), closes [#211](#211)
* adjust `Column`, `Schema` and `Table` to changes in `Row` ([#216](#216)) ([ca3eebb](ca3eebb))
* back `Row` by a `polars.DataFrame` ([#214](#214)) ([62ca34d](62ca34d)), closes [#196](#196) [#149](#149)
* clean up `Row` class ([#215](#215)) ([b12fc68](b12fc68))
* convert between `Row` and `dict` ([#206](#206)) ([e98b653](e98b653)), closes [#204](#204)
* convert between a `dict` and a `Table` ([#198](#198)) ([2a5089e](2a5089e)), closes [#197](#197)
* create column types for `polars` data types ([#208](#208)) ([e18b362](e18b362)), closes [#196](#196)
* dataframe interchange protocol ([#200](#200)) ([bea976a](bea976a)), closes [#199](#199)
* move existing ML solutions into `safeds.ml.classical` package ([#213](#213)) ([655f07f](655f07f)), closes [#210](#210)

### Bug Fixes

* `table.keep_only_columns` now maps column names to correct data ([#194](#194)) ([459ab75](459ab75)), closes [#115](#115)
* typo in type hint ([#184](#184)) ([e79727d](e79727d)), closes [#180](#180)
@lars-reimann
Copy link
Member

🎉 This PR is included in version 0.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Included in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

table.keep_only_columns maps column names to wrong data
3 participants