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

feat: optionally pass type to column #79

Merged
merged 4 commits into from
Mar 25, 2023

Conversation

lars-reimann
Copy link
Member

@lars-reimann lars-reimann commented Mar 25, 2023

Closes #78.

Summary of Changes

For the sake of consistency it is now possible to pass the type of a Column in the constructor. This also improves performance, for example when we call get_column on a Table. In that case we already know the type of the column anyway, so there's no reason to infer it again.

@lars-reimann lars-reimann linked an issue Mar 25, 2023 that may be closed by this pull request
@lars-reimann
Copy link
Member Author

lars-reimann commented Mar 25, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 2 0 0 0.74s
✅ PYTHON flake8 2 0 0.43s
✅ PYTHON isort 2 0 0 0.22s
✅ PYTHON mypy 2 0 1.67s
✅ PYTHON pylint 2 0 2.67s
✅ REPOSITORY git_diff yes no 0.03s

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 Mar 25, 2023

Codecov Report

Merging #79 (a5b4ed6) into main (bc63693) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
- Coverage   91.69%   91.68%   -0.02%     
==========================================
  Files          42       42              
  Lines        1156     1154       -2     
==========================================
- Hits         1060     1058       -2     
  Misses         96       96              
Impacted Files Coverage Δ
src/safeds/data/tabular/containers/_table.py 91.25% <ø> (-0.04%) ⬇️
src/safeds/data/tabular/containers/_column.py 89.43% <100.00%> (-0.09%) ⬇️

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

@lars-reimann lars-reimann merged commit 64aa429 into main Mar 25, 2023
@lars-reimann lars-reimann deleted the 78-optionally-pass-type-to-column branch March 25, 2023 22:26
lars-reimann pushed a commit that referenced this pull request Mar 26, 2023
## [0.4.0](v0.3.0...v0.4.0) (2023-03-26)

### Features

* better names for properties of `TaggedTable` ([#74](#74)) ([fee398b](fee398b))
* change the name of a `Column` ([#76](#76)) ([ec539eb](ec539eb))
* metrics as methods of models ([#77](#77)) ([bc63693](bc63693)), closes [#64](#64)
* optionally pass type to column ([#79](#79)) ([64aa429](64aa429)), closes [#78](#78)
* remove `target_name` parameter of `predict` ([#70](#70)) ([b513454](b513454)), closes [#9](#9)
* rename `tagged_table` parameter of `fit` to `training_set` ([#71](#71)) ([8655521](8655521))
* return `TaggedTable` from `predict` ([#73](#73)) ([5d5f5a6](5d5f5a6))
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Mar 26, 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.

Optionally pass type to Column
1 participant