Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Dataframe without shifting #1

Open
cwliu007 opened this issue Mar 12, 2016 · 2 comments
Open

Display Dataframe without shifting #1

cwliu007 opened this issue Mar 12, 2016 · 2 comments

Comments

@cwliu007
Copy link

Thank you for this useful sharing!

I just have a small question:

df = DataFrame({'Simithaaaaaaaaa'}, 0, 0, 0, ...
    'VariableNames', {'test1', 'test2','test3','test4',},...
    'RowNames',{'ROW'});

gives

df = 

                 test1          test2    test3    test4
           _________________    _____    _____    _____

    ROW    'Simithaaaaaaaaa'    0        0        0    
  1. Could it be resolved?
  2. Open df in workspace, I cannot find a way to show the Dataframe as a table above. Matlab's table function can do it:
LastName = {'Smith';'Johnson';'Williams';'Jones';'Brown'};
Age = [38;43;38;40;49];
Height = [71;69;64;67;64];
Weight = [176;163;131;133;119];
BloodPressure = [124 93; 109 77; 125 83; 117 75; 122 80];
T = table(Age,Height,Weight,BloodPressure,...
    'RowNames',LastName)

So, I can view T in Variable panel as a table.

@cwliu007
Copy link
Author

2016-03-13_000225

@cwliu007
Copy link
Author

2016-03-13_000225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant