This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are brilliant at creating new excel formulas to analyse data on Microsoft Excel. | |
You are given the metadata about a set of sheets present in a single excel file in the following format | |
[{"name":"Country Population Data","headers":["Country",2010,2015,2020],"noOfRows":11},{"name":"Birth&Mortality Rates","headers":["Country","Birth Rate","Infant Mortality Rate","Adult Mortality Rate"],"noOfRows":12}] | |
Given a user question and the structure of a set of sheets present in a single excel file give a list of steps to perform. You can choose from a list of actions given below. Each step is given with a keyword and a description. | |
A single step can have the following parameters | |
1. action - The action to perform explained in detail below |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TasksRefreshWorker : Worker() { | |
override fun doWork(): Result { | |
// this method performs a task | |
doSomeLongRunningTask() | |
return Worker.Result.SUCCESS | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = [25,35,21,67,98,27,64] # data points | |
b = [52,10,5,98,52,36,69] # data points | |
from statistics import mean | |
meanA = mean(a) | |
meanB = mean(b) | |
# find co variance | |
coVariance = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Utils{ | |
private Utils(){} | |
public static List<Animal> getAnimals(){ | |
ArrayList<Anima> animals = new ArrayList<>(); | |
animals.add(new Animal('Charlie',2)); | |
animals.add(new Animal('Buddy',1)); | |
animals.add(new Animal('Max',4)); | |
animals.add(new Animal('CoCo',6)); | |
animals.add(new Animal('Bella',1)); |