question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Printing panda dataframe mislabels columns

See original GitHub issue

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)

browser_run vscoderun

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Aug 5, 2020

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.

0reactions
rchiodocommented, Aug 10, 2020

Validated. Should be in September release.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found