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: create column types for polars data types #208

Merged
merged 13 commits into from
Apr 18, 2023
Merged

Conversation

lars-reimann
Copy link
Member

Closes partially #196.

Summary of Changes

  • Add polars
  • Create ColumnType for polars data type
  • Create Schema for polars data frame

@lars-reimann lars-reimann requested a review from a team as a code owner April 18, 2023 18:34
@lars-reimann
Copy link
Member Author

lars-reimann commented Apr 18, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 9 0 0 1.32s
✅ PYTHON mypy 9 0 2.52s
✅ PYTHON ruff 9 0 0 0.06s
✅ 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 Apr 18, 2023

Codecov Report

Merging #208 (14ebfaf) into main (102f0b9) will increase coverage by 0.18%.
The diff coverage is 98.46%.

❗ Current head 14ebfaf differs from pull request most recent head 24bd1c3. Consider uploading reports for the commit 24bd1c3 to get more accurate results

@@            Coverage Diff             @@
##             main     #208      +/-   ##
==========================================
+ Coverage   93.97%   94.16%   +0.18%     
==========================================
  Files          42       42              
  Lines        1495     1524      +29     
==========================================
+ Hits         1405     1435      +30     
+ Misses         90       89       -1     
Impacted Files Coverage Δ
src/safeds/data/tabular/typing/_schema.py 95.91% <96.55%> (+3.23%) ⬆️
src/safeds/data/tabular/containers/_column.py 89.86% <100.00%> (ø)
src/safeds/data/tabular/containers/_row.py 83.09% <100.00%> (ø)
src/safeds/data/tabular/containers/_table.py 93.33% <100.00%> (ø)
src/safeds/data/tabular/typing/_column_type.py 99.11% <100.00%> (+0.20%) ⬆️

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 marked this pull request as draft April 18, 2023 18:45
@lars-reimann lars-reimann marked this pull request as ready for review April 18, 2023 20:50
@lars-reimann lars-reimann merged commit e18b362 into main Apr 18, 2023
5 checks passed
@lars-reimann lars-reimann deleted the polars_datatypes branch April 18, 2023 20:51
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 Author

🎉 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.

None yet

2 participants