Skip to content

Data Viewer shows null index column when index column is reset #3436

Closed

Description

Environment data

  • VS Code version: 1.33.1
  • Extension version (available under the Extensions sidebar): 2019.4.11881
  • OS and version: Windows 10 1709 build 16299.1029
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: N/A

Expected behavior

image

Actual behavior

image

Steps to reproduce:

all_data = pd.read_csv('output/filename.csv')
all_data['Week Ending'] = pd.to_datetime(all_data['Week Ending'])
all_data.set_index('Week Ending', drop=True, inplace=True)
all_data.head()

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)


Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)


Activity

  1. rchiodo commented on Apr 29, 2019

    @rchiodo
    Contributor

    The root cause for the index column is we don't check if it's been renamed/changed.

    There's similar problems with custom types being used for columns too (like timestamps).

  2. rchiodo commented on Apr 29, 2019

    @rchiodo
    Contributor

    Just submitted a fix for this. Should be in our insider's build in the next 30 minutes or so

  3. locked as resolved and limited conversation to collaborators on Aug 14, 2019
  4. unlocked this conversation on Nov 14, 2020
  5. locked as resolved and limited conversation to collaborators on May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions