Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Selected camel-case OGC properties disappear after column normalization

已关闭
#437 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@qorud02 已经在做这个了。

开始于 2026年10月4日。

  • #438 来自 @qorud02 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
python
领域
data

调研方向

Read _finalize_ogc and _arrange_cols to follow how returned column names and requested properties are normalized and selected. Add a regression test for selecting sampleTime from a response containing that camel-case property; done means the result retains the normalized sample_time column and its value. A pull request is already open for this issue.

由索引模型根据 Issue 内容生成。

描述

When an OGC response uses a camel-case property and the caller selects it with properties, the returned DataFrame silently loses that column.

For example, a response frame containing id="obs-1" and sampleTime="2024-01-01T00:00:00Z", with properties=["sampleTime"], is normalized to a sample_time column in _finalize_ogc. The subsequent _arrange_cols call compares the original sampleTime name with the normalized columns and returns a frame with no columns. The result should retain sample_time and its value.

This occurs in the local shaping path without an API request. The Water Data API's snake-case properties do not trigger it, but the same OGC shaping code explicitly supports camel-case response fields. I have a small fix and regression test in progress: normalize requested property names the same way as returned column names before selecting them.

主要语言
Python
星标
269
派生
67
平均合并
3 天 17 小时
30 天内合并 PR
18

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DOI-USGS/dataretrieval-python 的其他 Issue

查看 DOI-USGS/dataretrieval-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。