Printing panda dataframe mislabels columns
See original GitHub issueIssue 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
Item | Value |
---|---|
CPUs | Intel® Core™ i5-6300HQ CPU @ 2.30GHz (4 x 2304) |
GPU Status | 2d_canvas: enabled 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 |
Load (avg) | undefined |
Memory (System) | 7.88GB (1.88GB free) |
Process Argv | |
Screen Reader | no |
VM | 40% |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Pretty Printing a pandas dataframe - python - Stack Overflow
I've just found a great tool for that need, it is called tabulate. It prints tabular data and works with DataFrame . from...
Read more >How to Print Pandas DataFrame without Index
To print the DataFrame without indices uses DataFrame.to_string() with index=False parameter. A pandas DataFrame has row indices/index and ...
Read more >Pandas Change Column Names – 3 Methods
The second way to rename your columns is by setting DataFrame.columns to the list of your new column names. This will completely overwrite...
Read more >How to show all columns / rows of a Pandas Dataframe?
Columns. The display.max_columns option controls the number of columns to be printed. It receives an int or None (to print all the columns):...
Read more >How to print an entire Pandas DataFrame in Python?
There are 4 methods to Print the entire pandas Dataframe: · Use to_string() Method · Use pd.option_context() Method · Use pd.set_options() Method ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.