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

[MRG] Remove deprecated closed argument in pd.daterange #64

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

jeroenboeye
Copy link
Contributor

The closed argument was set to None which is the default, removing it should thus not have any impact.
Since Pandas 1.4.0 this argument has been deprecated in favour of the inclusive argument so you get a lot of warnings when running the code.
The default argument to inclusive is "both" which has the same behaviour as the current code. I thus see no need to add it.
https://pandas.pydata.org/docs/reference/api/pandas.date_range.html

The `closed` argument was set to `None` which is the default, removing it should thus not have any impact.
Since Pandas 1.4.0 this argument has been deprecated in favour of the `inclusive` argument so you get a lot of warnings when running the code.
The default argument to `inclusive` is `"both"` which has the same behaviour as the current code. I thus see no need to add it.
https://pandas.pydata.org/docs/reference/api/pandas.date_range.html
@codecov-commenter
Copy link

Codecov Report

Merging #64 (255101c) into main (a320fb4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #64   +/-   ##
=======================================
  Coverage   97.73%   97.73%           
=======================================
  Files          23       23           
  Lines        1103     1103           
=======================================
  Hits         1078     1078           
  Misses         25       25           
Impacted Files Coverage Δ
tsflex/features/segmenter/strided_rolling.py 95.58% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a320fb4...255101c. Read the comment docs.

@jvdd
Copy link
Member

jvdd commented Jun 1, 2022

Hi @jeroenboeye,

Thanks for the contribution & clear description! 😄

Note: in #62 we fixed some bugs concerning the indexing of the extracted features. As soon as I find some time, I will look more into this branch and merge these improvements as well! As for now, I will release a new stable version that includes your improvement.

@jvdd jvdd merged commit 2df1d47 into predict-idlab:main Jun 1, 2022
@jeroenboeye
Copy link
Contributor Author

Cool, you're welcome!
Thanks for the quick response.

@jvdd
Copy link
Member

jvdd commented Jun 1, 2022

tsflex v0.2.3.7.7 includes your improvement!

(feel free to ⭐ this repo if you have'nt already 😄 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants