Azure / Azure/MachineLearningNotebooks
register_pandas_dataframe crashes kernel when receiving dataframe with multiple columns with same name
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 4.4k
- Forks
- 2.6k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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:
```python
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.*
* ID: 9b1aee32-5a1f-2ef1-ee76-30b17999db87
* Version Independent ID: f4785272-a81d-e9cc-c6a5-9d41c8dcd90b
* Content: [azureml.data.dataset_factory.TabularDatasetFactory class - Azure Machine Learning Python](https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.data.dataset_factory.tabulardatasetfactory?view=azure-ml-py)
* Content Source: [AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.data.dataset_factory.TabularDatasetFactory.yml](https://github.com/MicrosoftDocs/MachineLearning-Python-pr/blob/live/AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.data.dataset_factory.TabularDatasetFactory.yml)
* Service: **machine-learning**
* Sub-service: **core**
* GitHub Login: @DebFro
* Microsoft Alias: **debfro**
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Comece executando o exemplo de pandas DataFrame da issue com nomes de coluna duplicados e observe a saída do kernel. O payload identifica a fonte da documentação de TabularDatasetFactory em AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.data.dataset_factory.tabulardatasetfactory.yml, mas nenhum arquivo de implementação ou teste é indicado. Considera-se concluído quando a falha retorna feedback útil sem causar o crash do IPython kernel.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- azure, jupyter-notebook, pandas, python
- Domínio
- data, machine-learning
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 30/100