Deprecation warnings with pandas 3.1 (`inplace`, `read_csv(float_precision=...)`)
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 18
- Fork
- 9
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PEtab-dev/libpetab-python
-
`petab1to2`: random column name for pre-existing `experimentId` columnCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
PEtab-dev/libpetab-python#568 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`petab_files_1to2` keeps a stale model file when converting into a non-empty output directoryĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
PEtab-dev/libpetab-python#566 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PEtab-dev/libpetab-python#549 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PEtab-dev/libpetab-python#525 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`petablint` fails for PEtab v2 problems with only warningsCó thể đã có người làm @dweindl đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
PEtab-dev/libpetab-python#567 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PEtab-dev/libpetab-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Arekkazu/sgpmp-backend#744 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Review backlog (security): master-branch remote guard trusts unbound provenance package fieldĐang mởagent/reviewer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
projectbluefin/utah-packages#634 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue help wanted
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
home-assistant/core#188613 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
WebsiteĐang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 91/100
TanbirRamim/open-source-radar#314 ·
Maintainer thường phản hồi trong vòng 1 ngày