posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.59k stars 79 forks source link

Data Explorer: Numeric columns are left-aligned #3376

Closed jthomasmock closed 4 months ago

jthomasmock commented 4 months ago

Positron Dev Version: 2024.06.0 build 0

Code - OSS Version: 1.89.0 Commit: Unknown Date: Unknown Electron: 28.2.8 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin arm64 23.4.0

ref: 6b25d12

Steps to reproduce the issue:

  1. View a Python or R dataframe
import pandas as pd
# Dictionary of key pair values called data
data = {'Name':['Ashika', 'Tanu', 'Ashwin', 'Mohit', 'Sourabh'],
        'Age': [24.1, 23, 22, 19, 10]}
data
{'Age': [24, 23, 22, 19, 10],  'Name': ['Ashika', 'Tanu', 'Ashwin', 'Mohit', 'Sourabh']}
# Calling the pandas data frame method by passing the dictionary (data) as a parameter
df = pd.DataFrame(data)
df
View(Orange)
  1. Note that numeric/float column is left-aligned and thus loses proper alignment:

image

Screen Shot 2024-06-03 at 8 10 26 PM

What did you expect to happen?

Right-alignment.

Were there any error messages in the output or Developer Tools console?

jonvanausdeln commented 4 months ago

Verified Fixed

Positron Version(s) : 2024.06.0-35 OS Version(s) : Windows 11, Ubuntu 22

Test scenario(s)

Both Python and R numeric values are right aligned now

Link(s) to TestRail test cases run or created: