-
Notifications
You must be signed in to change notification settings - Fork 287
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
Printing panda dataframe mislabels columns #2250
Comments
I have the same problem.
Output with Jupyter Notebook or IPython console (expected, correct):
Output with VSCode:
VSCode: 1.43.2 pandas: 1.0.3 jupyter core : 4.6.3 |
Printing the DataFrame a second time does not show the same issue:
Is the output of the cell stripped of beginning/end withe spaces? |
This is actually a bug of VS Code, which automatically remove the leading whitespaces of a print() statement. Example: write print(" hello world"), and the output will remove the leading whitespaces of this statement. VS Code, please help resolve this problem. This is really driving Python users nuts. More info: microsoft/vscode#103766 |
Moving back to triage. We've been getting a bunch of dupes of this. Note: One of the dupes was marked as Nice To Have for July. |
Validated. Should be in September release. |
Issue Type: Bug
Create a two-dimensional array using Python: Pandas: DataFrame, and output a table column index top that does not correspond to the data
import pandas as pd from pandas import Series, dict2 = {'a':[1, 2, 3], 'b':[4, 5, 6]} df6 = pd.DataFrame.from_dict(dict2) print(df6)
Extension version: 2020.3.63821-dev
VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:45:59.656Z)
OS version: Windows_NT x64 10.0.18362
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: