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)
Note that numeric/float column is left-aligned and thus loses proper alignment:
What did you expect to happen?
Right-alignment.
Were there any error messages in the output or Developer Tools console?
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:
What did you expect to happen?
Right-alignment.
Were there any error messages in the output or Developer Tools console?