Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Deprecation warnings with pandas 3.1 (`inplace`, `read_csv(float_precision=...)`)

Offen
#570 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@dweindl arbeitet bereits daran.

Seit 22.10.2026.

  • #571 von @dweindl — offen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

pandas 3.1.0 deprecates the inplace keyword of drop, rename, reset_index, set_index, sort_index, sort_values and others (PDEP-8), and the float_precision argument of read_csv. Both emit Pandas4Warning (a DeprecationWarning subclass) and will stop working in pandas 4.

petab uses both when loading any PEtab table, so every Problem.from_yaml warns. Downstream test suites that turn warnings into errors fail (e.g., AMICI, see AMICI-dev/AMICI#3440).

Affected places on main (68be6d1):

  • read_csv(..., float_precision="round_trip"): v1/conditions.py, v1/core.py (2×), v1/mapping.py, v1/measurements.py, v1/observables.py, v1/parameters.py, v2/conditions.py, v2/experiments.py
  • reset_index(inplace=True) / set_index(..., inplace=True): v1/conditions.py, v1/mapping.py, v1/observables.py, v1/parameters.py (incl. l. 243), v1/simplify.py
  • sort_index(inplace=True): v1/visualize/plotting.py (2×)
  • rename(..., inplace=True) / drop(..., inplace=True): v2/petab1to2.py (5×)

(fillna(..., inplace=True) in v1/visualize/lint.py and v2/petab1to2.py is not affected.)

The inplace uses can be replaced by re-assignments. For float_precision, pandas 3.1 uses the same (improved) converter for all precision modes (pandas#64395), but older pandas versions don't parse round-trip by default. So the argument should probably only be passed for pandas < 3.1.

🤖 Generated with Claude Code

Vorherrschende Sprache
Python
Sterne
18
Forks
9
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
21

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus PEtab-dev/libpetab-python

Alle Issues in PEtab-dev/libpetab-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.