• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ouranosinc / xscen / 8651680914
90%

Build:
DEFAULT BRANCH: main
Ran 11 Apr 2024 06:45PM UTC
Jobs 8
Files 19
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Apr 2024 06:41PM UTC coverage: 73.714% (-0.007%) from 73.721%
8651680914

push

github

web-flow
Address a few FutureWarnings (#380)

<!-- Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #xyz
- [x] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [x] (If applicable) Tests have been added.
- [x] This PR does not seem to break the templates.
- [x] CHANGES.rst has been updated (with summary of main changes).
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added.

### What kind of change does this PR introduce?

* Addresses a few FutureWarning I encountered recently:
* `groupby` will change the default to `observed=True`. I think that our
implementation here does not care about `observed`, even if we use
categoricals, but I'm not 100% sure. We could use `observed=False` to
ensure no breaking change.
*
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.groupby.html
*
https://towardsdatascience.com/be-careful-when-using-pandas-groupby-with-categorical-data-type-a1d31f66b162
  * Changed a few of the old `pandas` codes that were missed.
  * Changed `pd.unique` to `np.unique`
* `pd.unique with argument that is not not a Series, Index,
ExtensionArray, or np.ndarray is deprecated and will raise in a future
version.`
* `intake_esm` no longer spams the warning about `applymap`, so our fix
was removed. It still has the "observed=True" spam, however.
    * Changed an implementation of inplace modifications to a DataFrame.
* `FutureWarning: A value is trying to be set on a copy of a DataFrame
or Series through chained assignment using an inplace method. The
behavior will change in pandas 3.0. This inplace method will never work
because the intermediate object on which we are setting values always
behaves as a copy.... (continued)

6 of 7 new or added lines in 3 files covered. (85.71%)

2967 of 4025 relevant lines covered (73.71%)

5.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-Python3.10 - 8651680914.1 11 Apr 2024 06:47PM UTC 0
71.11
2 run-Python3.12 - 8651680914.2 11 Apr 2024 06:47PM UTC 0
71.11
3 run-Python3.11 - 8651680914.3 11 Apr 2024 06:47PM UTC 0
71.11
4 run-Python3.12-conda - 8651680914.4 11 Apr 2024 06:47PM UTC 0
73.57
5 run-Python3.9-conda - 8651680914.5 11 Apr 2024 06:47PM UTC 0
73.54
6 run-Python3.9 - 8651680914.6 11 Apr 2024 06:47PM UTC 0
71.07
7 run-Python3.10-conda - 8651680914.7 11 Apr 2024 06:47PM UTC 0
73.57
8 run-Python3.11-conda - 8651680914.8 11 Apr 2024 06:47PM UTC 0
73.57
Source Files on build 8651680914
Detailed source file information is not available for this build.
  • Back to Repo
  • 32b360fa on github
  • Prev Build on main (#8649425864)
  • Next Build on main (#8652973393)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc