'VS Code - Data Viewer does not show labeled Indexes

The Data Viewer does not show labeled indexes.

Code to reproduce:

d = {'index_col': ['foo', 'bar'], 'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(data=d)
df.set_index('index_col', inplace=True)

Result

enter image description here

Any idea how this can be solved?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source