Deprecation warnings with pandas 3.1 (`inplace`, `read_csv(float_precision=...)`)
Maintainer antworten meist innerhalb von 1 Tag
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.pyreset_index(inplace=True)/set_index(..., inplace=True):v1/conditions.py,v1/mapping.py,v1/observables.py,v1/parameters.py(incl. l. 243),v1/simplify.pysort_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
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus PEtab-dev/libpetab-python
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
PEtab-dev/libpetab-python#568 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
PEtab-dev/libpetab-python#566 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
PEtab-dev/libpetab-python#549 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
PEtab-dev/libpetab-python#525 ·
Maintainer antworten meist innerhalb von 1 Tag
-
`petablint` fails for PEtab v2 problems with only warningsEvtl. vergeben @dweindl hat das vor 2 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
PEtab-dev/libpetab-python#567 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in PEtab-dev/libpetab-python
Ähnliche Issues
-
[Resource]: LoreOffenresource-submission validation-passed
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
hesreallyhim/awesome-claude-code#3234 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
openminion/openminion#376 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Type: ☹︎ Bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
posit-dev/great-tables#1028 ·
Maintainer antworten meist innerhalb von 1 Tag
-
integration: apple_tv
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
home-assistant/core#188282 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
A "since" range is worded as a career: "the past two seasons" says "regular season career (2025 on)"OffenP4: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
jeffknupp/association#538 ·