Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Viewer doesn't show unique values when dataframe has duplicate column names #12583

Closed
1 of 2 tasks
jvanelteren opened this issue Jan 19, 2023 · 1 comment
Closed
1 of 2 tasks
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug data-viewer
Milestone

Comments

@jvanelteren
Copy link

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

I made a dataframe with multiple identical column names (not good practice of course, but I did it). When using the data viewer, it shows the values of the last identical column for all of the columns.

import pandas as pd
test = pd.DataFrame(([10,20,30, 40],), columns=['same','same', 'same', 'different'])

This displays as:

0, 30, 30, 30, 40

Expected:

0, 10, 20, 30, 40

Regular displaying the dataframe in the interactive notebook does work as expected, this is only the Data Viewer.

VS Code Version

Version: 1.74.3 (system setup) Commit: 97dec172d3256f8ca4bfb2143f3f76b503ca0534 Date: 2023-01-09T16:59:02.252Z Electron: 19.1.8 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.19044 Sandboxed: No

Jupyter Extension Version

v2022.11.1003412109

Jupyter logs

No response

Coding Language and Runtime Version

Python 3.11.0

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

@jvanelteren jvanelteren added the bug Issue identified by VS Code Team member as probable bug label Jan 19, 2023
@rebornix rebornix assigned roblourens and unassigned rebornix Jan 19, 2023
@roblourens roblourens added this to the Backlog milestone Jan 20, 2023
@amunger amunger self-assigned this Dec 14, 2023
@amunger
Copy link
Contributor

amunger commented Nov 20, 2024

closing as the jupyter data viewer was deprecated #15486

@amunger amunger closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug data-viewer
Projects
None yet
Development

No branches or pull requests

4 participants