You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When resizing a column of a floating point, the number is trimmed from the left removing the most significant figures first in the column display while insignificant decimals are kept visible. This only allows the columns to be reduced to the full floating point size, where most often anything beyond the 4 significant figure is superfluous.
The display should move the floating point to the right, removing the smallest decimals first instead of the largest significant figure.
An adjustable global significant figure view would help.
Hi @war-live, just wanted to let you know that we've merged a fix to address this in the latest pre-release v1.5.4. Please feel free to give it a try and let me know what you think!
________________________________
From: Paul ***@***.***>
Sent: 24 July 2024 23:09
To: microsoft/vscode-data-wrangler ***@***.***>
Cc: war-live ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-data-wrangler] Resizing columns with fractions, the numbers are shifted left not right. Removing the significant numbers first, instead of the lowest dicimals (Issue #228)
Hi @war-live<https://github.com/war-live>, just wanted to let you know that we've merged a fix to address this in the latest pre-release v1.5.4. Please feel free to give it a try and let me know what you think!
—
Reply to this email directly, view it on GitHub<#228 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BCNJZRM76HBFCPE7XTAGSIDZOAQXZAVCNFSM6AAAAABKWQCNR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYHE3TSOBSGA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
Type: Bug
Behaviour
Expected vs. Actual
When resizing a column of a floating point, the number is trimmed from the left removing the most significant figures first in the column display while insignificant decimals are kept visible. This only allows the columns to be reduced to the full floating point size, where most often anything beyond the 4 significant figure is superfluous.
The display should move the floating point to the right, removing the smallest decimals first instead of the largest significant figure.
An adjustable global significant figure view would help.
Steps to reproduce:
pandas 3.10
import numpy as np
import pandas as pd
rawdata = [{'column1' : 15,'column2' : 25/3,'col3' : 200np.pi,'col4' : 523,'column5' : 2/3,'column6':1/(np.pi10),'column7':56}]
df = pd.DataFrame(data=rawdata)
resize columns 2,3,5,6
Diagnostic data
Extension version: 1.4.1
VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:52:22.949Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: