Jump to content
UBot Underground

How would you calculate the average of a table?


Recommended Posts

Hey Guys

 

how would one go about calculating the average of a column in a table with ubot?

At the moment I am doing this in excel but wouldlike my bot to do this as it is a task that should be done automatically?

 

Any suggestions would be appreciated

Link to post
Share on other sites

Here is an example for you...I created the csv file in the code so I didn't have to attach one...you can scroll down to see where your code would actually begin. Now keep in mind, I set this up the long way so you could see each step and what I did, but this code can be condensed...you can also eliminate the list altogether and just pull the numbers from the table directly. I just thought it would be easier for you see how it works by doing it this way...

Average of List.ubot

Link to post
Share on other sites
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...