Setting name of <SArray> when using .show()

User 2151 | 10/6/2015, 7:40:32 PM

Using .show() on array subsets of graphlab capable objects (both inline and on the canvas) results in:

Most frequent items from <SArray>

e.g given an SFrame bar with columns A, B ,C doing bar.show() produces the expected results of showing the various columns of bar while doing bar['A'].show() while returning the correct frequent items in bar['A'] has a heading of "Most frequent items from <SArray>"

Is there a way to have the <SArray> labeled with the name of the object?

Maybe this is a feature request...

Comments

User 940 | 10/6/2015, 8:04:00 PM

Hi @borowcm ,

SArray's do not have associated column names, while SFrames do. You can sub-select one column in an SFrame though.

Could you try bar[['A']].show()

and see how it works?

Cheers! -Piotr


User 2151 | 10/8/2015, 5:16:40 PM

Interesting - thanks @piotr it does give a distribution - just as a box and whiskers plot rather than a column based distribution plot. (But that's okay - thanks again!)

Take care, Mike