Skip to content

feat: make data parameter of Table and Column required#978

Merged
lars-reimann merged 5 commits intomainfrom
require-data
Jan 8, 2025
Merged

feat: make data parameter of Table and Column required#978
lars-reimann merged 5 commits intomainfrom
require-data

Conversation

@lars-reimann
Copy link
Member

Summary of Changes

The data parameter of Table and Column must now be specified. Being able to omit it was nice for tests, but also means that users might forget to specify their data. Since tables and columns are immutable, creating an empty table is rarely useful in practice.

@lars-reimann lars-reimann changed the title feat: make data parameter of Table and Column required feat: make data parameter of Table and Column required Jan 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2025

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 78 0 0 2.12s
✅ PYTHON mypy 78 0 3.93s
✅ PYTHON ruff 78 0 0 0.3s
✅ REPOSITORY git_diff yes no 0.29s

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 Jan 8, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 94.42%. Comparing base (7a7fa77) to head (324bb16).

Files with missing lines Patch % Lines
src/safeds/data/tabular/containers/_table.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #978      +/-   ##
==========================================
- Coverage   94.42%   94.42%   -0.01%     
==========================================
  Files         121      121              
  Lines        7463     7459       -4     
==========================================
- Hits         7047     7043       -4     
  Misses        416      416              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lars-reimann lars-reimann merged commit 29fdefa into main Jan 8, 2025
@lars-reimann lars-reimann deleted the require-data branch January 8, 2025 15:30
lars-reimann pushed a commit that referenced this pull request Feb 26, 2025
## [0.30.0](v0.29.0...v0.30.0) (2025-02-26)

### Features

* add more mathematical operations ([#986](#986)) ([2539a20](2539a20)), closes [#977](#977)
* add more string operations ([#993](#993)) ([9bc5673](9bc5673)), closes [#977](#977)
* consistent `selector` parameters ([#983](#983)) ([dc4640b](dc4640b))
* improved operations on cells ([#985](#985)) ([7396c94](7396c94)), closes [#977](#977)
* make `data` parameter of `Table` and `Column` required ([#978](#978)) ([29fdefa](29fdefa))
* stabilize `Cell` class ([#984](#984)) ([96be911](96be911)), closes [#977](#977)
* stabilize `Column` ([#981](#981)) ([38dc89c](38dc89c)), closes [#754](#754) [#977](#977)
* stabilize `Row` class ([#980](#980)) ([ca1ce3d](ca1ce3d)), closes [#977](#977)
* stabilize `Table` class ([#979](#979)) ([db85617](db85617)), closes [#875](#875) [#877](#877) [#977](#977) [#754](#754)
* transform multiple columns of `Table` at once ([#982](#982)) ([2db9069](2db9069))
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

2 participants