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] Add str.upper() function #1942

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

nsalerni
Copy link
Contributor

Closes #1920

* Adding the `upper` function to match
https://ibis-project.org/reference/expression-strings#ibis.expr.types.strings.StringValue.upper
* Added tests showing example usage
* Refactor tests for str.lower to be a single parameterized test

Closes Eventual-Inc#1920
Copy link

codecov bot commented Feb 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1e878ae) 85.51% compared to head (34906d6) 85.57%.
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1942      +/-   ##
==========================================
+ Coverage   85.51%   85.57%   +0.05%     
==========================================
  Files          55       55              
  Lines        6221     6226       +5     
==========================================
+ Hits         5320     5328       +8     
+ Misses        901      898       -3     
Files Coverage Δ
daft/expressions/expressions.py 91.01% <100.00%> (+0.04%) ⬆️
daft/series.py 92.97% <100.00%> (+0.04%) ⬆️

... and 2 files with indirect coverage changes

@nsalerni nsalerni marked this pull request as ready for review February 22, 2024 06:00
@samster25 samster25 added the enhancement New feature or request label Feb 22, 2024

def test_series_utf8_lower_all_null() -> None:
s = Series.from_arrow(pa.array([None, None, None]))
@pytest.mark.parametrize(
Copy link
Member

Choose a reason for hiding this comment

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

Very nice, refactoring this to be parameterized!

@samster25
Copy link
Member

@nsalerni Thanks for knocking out another one!

@samster25 samster25 merged commit 5b2fe98 into Eventual-Inc:main Feb 22, 2024
41 of 42 checks passed
samster25 pushed a commit that referenced this pull request Feb 27, 2024
* Adding the `upper` function to match
https://ibis-project.org/reference/expression-strings#ibis.expr.types.strings.StringValue.upper
* Added tests showing example usage
* Refactor tests for str.lower to be a single parameterized test

Closes #1920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EXPRESSIONS] .str.upper()
2 participants