rs-station / reciprocalspaceship

Tools for exploring reciprocal space
https://rs-station.github.io/reciprocalspaceship/
MIT License
28 stars 12 forks source link

Update dependency pandas to >=1.2.0, <=1.4.1 #127

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pandas (source) >=1.2.0, <=1.3.5 -> >=1.2.0, <=1.4.1 age adoption passing confidence

Release Notes

pandas-dev/pandas ### [`v1.4.1`](https://togithub.com/pandas-dev/pandas/releases/v1.4.1) [Compare Source](https://togithub.com/pandas-dev/pandas/compare/v1.4.0...v1.4.1) This is the first patch release in the 1.4.x series and includes some regression fixes and bug fixes. We recommend that all users upgrade to this version. See the [full whatsnew](https://pandas.pydata.org/pandas-docs/version/1.4.1/whatsnew/v1.4.1.html) for a list of all the changes. The release will be available on the defaults and conda-forge channels: conda install pandas Or via PyPI: python3 -m pip install --upgrade pandas Please report any issues with the release on the [pandas issue tracker](https://togithub.com/pandas-dev/pandas/issues). ### [`v1.4.0`](https://togithub.com/pandas-dev/pandas/releases/v1.4.0) [Compare Source](https://togithub.com/pandas-dev/pandas/compare/v1.3.5...v1.4.0) This release includes some new features, bug fixes, and performance improvements. We recommend that all users upgrade to this version. See the [full whatsnew](https://pandas.pydata.org/pandas-docs/version/1.4.0/whatsnew/v1.4.0.html) for a list of all the changes. pandas 1.4.0 supports Python 3.8 and higher. The release will be available on the defaults and conda-forge channels: conda install -c conda-forge pandas Or via PyPI: python3 -m pip install --upgrade pandas Please report any issues with the release on the [pandas issue tracker](https://togithub.com/pandas-dev/pandas/issues).

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by WhiteSource Renovate. View repository job log here.

JBGreisman commented 2 years ago

pandas 1.4.x implements a change to BaseMaskedArray._maybe_mask_result(). This change involved some hard-coded dtype conversions to IntegerArray and FloatingArray. For example, these lines result in the conversion of floating point MTZ data types to pandas values:

https://github.com/pandas-dev/pandas/blob/226f1c2b8ad6fafd3c268459f3f745191591bb89/pandas/core/arrays/masked.py#L570-L577

My change to this PR implements custom versions of these functions to preserve MTZ dtypes through operations.

codecov-commenter commented 2 years ago

Codecov Report

Merging #127 (dbd04ff) into main (4c5b939) will decrease coverage by 0.05%. The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #127      +/-   ##
==========================================
- Coverage   98.72%   98.67%   -0.06%     
==========================================
  Files          41       41              
  Lines        1574     1583       +9     
==========================================
+ Hits         1554     1562       +8     
- Misses         20       21       +1     
Flag Coverage Δ
unittests 98.67% <88.88%> (-0.06%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
reciprocalspaceship/dtypes/base.py 96.33% <88.88%> (-0.67%) :arrow_down:

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 4c5b939...dbd04ff. Read the comment docs.