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

Ouranosinc / xscen / 8651680914 / 3
90%
main: 90%

Build:
DEFAULT BRANCH: main
Ran 11 Apr 2024 06:47PM UTC
Files 19
Run time 2s
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: 71.113% (-0.007%) from 71.12%
8651680914.3

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)

2863 of 4026 relevant lines covered (71.11%)

0.71 hits per line

Source Files on job run-Python3.11 - 8651680914.3
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8651680914
  • 32b360fa on github
  • Prev Job for on main (#8649425864.3)
  • Next Job for on main (#8652973393.5)
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