add test to ensure estimators raise errors when X has duplicated column names

未关闭
#687 8 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@sadia901108 已经在做这个了。

开始于 2026年5月21日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
领域
testing-qa

调研方向

Start with the duplicated-column check and its test in test_dataframe_checks.py, which the linked PR #686 adds, then look at the per-transformer test files under estimator_checks/. Confirm that PR is merged and whether the files have been refactored yet. For each estimator, add a test that fitting on a DataFrame with duplicated column names raises the error, and run pytest on those files. Done means every estimator that takes a DataFrame has this test and the suite passes.

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

描述

Per comment in PR: https://github.com/feature-engine/feature_engine/pull/686#pullrequestreview-1544746361

After the PR in the link above gets merged, there will be a general check for duplicated columns for which a test was added in test_dataframe_checks.py. This new error raised on duplicated column names should be tested also in the invidual transformers in estimator_checks/* after the files gets refactored.

主要语言
Python
星标
2.3k
派生
391
平均合并
11 小时 34 分钟
30 天内合并 PR
11

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

feature-engine/feature_engine 的其他 Issue

查看 feature-engine/feature_engine 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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