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

register_pandas_dataframe crashes kernel when receiving dataframe with multiple columns with same name

未关闭
#1,809 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
azure, jupyter-notebook, pandas, python

调研方向

首先运行 issue 中使用重复列名的 pandas DataFrame 示例,并观察 kernel 退出。该 payload 指出了 AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.data.dataset_factory.tabulardatasetfactory.yml 中的 TabularDatasetFactory 文档源,但没有指定实现文件或测试。完成的标准是:失败时返回有用的反馈,而不会导致 IPython kernel 崩溃。

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

描述

My Synapse kernel crashed when I tried to register a dataset where the dataframe had multiple columns with the same name. I am not completely sure if this is the correct place to post this, but this is the best place I could find.

Minimum reproducible example:

dataset = Dataset.Tabular.register_pandas_dataframe(
    dataframe = pd.DataFrame([[1,2],[1,2]], columns=['a', 'a']),
    target = datastore,
    name = "bad_dataframe",
    show_progress=True,
)

What I would expect:
To get some feedback about why it fails, and the kernel should not crash.

What I get:

Validating arguments.
Arguments validated.
Successfully obtained datastore reference and path.
Uploading file to managed-dataset/13e4b3c6-8730-4951-bde5-2d2bc6456e2d/
InternalError: Ipython kernel exits with code -11. Please restart your session.

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

主要语言
Jupyter Notebook
星标
4.4k
派生
2.6k
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

Azure/MachineLearningNotebooks 的其他 Issue

查看 Azure/MachineLearningNotebooks 的全部 Issue

相似的 Issue

更多 Data Engineering Issue

把新 issue 发到你的邮箱

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