DataFrame icon indicating copy to clipboard operation
DataFrame copied to clipboard

Display Dataframe without shifting

Open cwliu007 opened this issue 8 years ago • 2 comments

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 avatar Mar 12 '16 16:03 cwliu007

2016-03-13_000225

cwliu007 avatar Mar 12 '16 16:03 cwliu007

2016-03-13_000225

cwliu007 avatar Mar 12 '16 16:03 cwliu007