Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

GeoPandas treating keys as positions

Đang mở
#1,221 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
pandas, python
Lĩnh vực
data

Hướng nghiên cứu

The warning is raised from the geopandas geoseries.py line 772 while climada.util.test.test_lines_polys_handler runs, so start by running that test and finding the positional Series indexing in the climada code it exercises. Replace integer-key lookups with .iloc where position is meant, or .loc where a label is meant. Done when the FutureWarning no longer appears and the test still passes. The issue has no comments or assignee, so confirm the intended behaviour with maintainers first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

warnings

FutureWarning

Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos]

Occurrence

  • geopandas.geoseries:772

Raised in

  • climada.util.test.test_lines_polys_handler
Ngôn ngữ chính
Jupyter Notebook
Star
478
Fork
166
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CLIMADA-project/climada_python

Tất cả issue của CLIMADA-project/climada_python

Issue tương tự

Thêm issue về Data Engineering

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.