I'm using the Orange3 gui and have been asked to generate basic plots where values relative to a "mean" or "Percentile Rank" are colorized.

I looked in Feature Constructor, but as far as I could tell it lacks a way to calculate the total number of rows, or instances of incoming data.

I've looked elsewhere for widgets that might help and stumbled upon Box Plot, however, if one attaches a Data Table to the output of Box Plot, we can see that no new columns contain the values of the mean or standard deviation are generated.

Is there some widget that has a function that can output these values, or the total number of rows selected / in the data set so that I can write my own function?

  • $\begingroup$ As with your other question: if it is about general usage of a package or programming in general, you will be better off asking on StackOverflow. $\endgroup$
    – n1k31t4
    Sep 14 '18 at 9:02
  • 1
    $\begingroup$ @n1k31t4 Why would you believe that? My question is not about programming, and the data science package Orange3 is isn't in common usage outside the data science community. $\endgroup$
    – virtualxtc
    Sep 14 '18 at 9:23

Python Script widget looks like it might fit your needs, where, according to the docs, a code like this should give you the number of rows in a data set:

n_rows = len(in_data)
  • $\begingroup$ What would the code block look like? $\endgroup$
    – virtualxtc
    Sep 17 '18 at 20:39
  • $\begingroup$ Updated. The rest is on you, I'm afraid. :) $\endgroup$
    – K3---rnc
    Sep 18 '18 at 9:55
  • $\begingroup$ Yea I had gotten that far, but I wasn't sure how to output the result for use with a different widget / was confused about what I might need to import; but I can just guess and test... $\endgroup$
    – virtualxtc
    Sep 18 '18 at 18:46
  • $\begingroup$ Try this: docs.orange.biolab.si/3/data-mining-library/tutorial/data.html $\endgroup$
    – K3---rnc
    Sep 18 '18 at 20:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.