FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated

Aperta
#125 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@jjmaynard ci sta già lavorando.

Dal 24/6/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Description

Fix the code causing this warning:

soil_id/tests/us/test_us.py::test_empty_rank
  /Users/paul/.dev/soil-id-algorithm/soil_id/utils.py:1012: FutureWarning: The behavior of DataFrame concatenation with 
empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when 
determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.
    site_vars = pd.concat([p_slope, mucompdata[["compname", "slope_r", "elev_r"]]], axis=0)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Lingua principale
Python
Stelle
2
Fork
3
Merge medio
16h 14m
PR unite (30g)
1

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di techmatters/soil-id-algorithm

Tutte le issue di techmatters/soil-id-algorithm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.