In Progress

Build python 3.6+ class/funciton

I have a database with some statistics that I'd like to chart. First some notes on the input:

bucket_time = epoch

bucket_size = length in seconds that data was collected.

For example, 60 = data was collected for 60 seconds and either averaged or summed together. 0 would mean that data was collected as a point in time.

bucket_name = the name of the statistic being tracked.

bucket_value = the final final value of the average, sum, or point in time value.

bucket_type = counter, average, datapoint (a value in time)

Things I'd like this new function/class do:

Ideally, i want to be able to compute results on multiple bucket_names.

To cut data data size sent to clients, be able to set an output bucket_size. Say, 600 seconds. It would then merge smaller buckets into larger ones.

If starting or ending value is missing, use the value nearest to it.

For counters:

Add values together into the new bucket size.

If epoch buckets are missing, create the missing ones and insert 0 as the value.

For averages:

Average the values together. Yes, I know, it's not weighted properly.

If epoch buckets are missing, create the missing ones and insert 0 as the value.

For datapoints:

Average the values together.

If epoch buckets are missing, create the missing ones and insert 0 as the value.

Here's input #1: This input is a counter. There are some time periods missing, so the function should fill any missing time periods with 0.

sqlite> select bucket_time, bucket_size, bucket_name, bucket_value, bucket_type from statistics where bucket_name = '[url removed, login to view]' order by bucket_time;

1506376740|60|[url removed, login to view]|11.0|counter

1506376800|60|[url removed, login to view]|12.0|counter

1506377520|60|[url removed, login to view]|11.0|counter

1506377580|60|[url removed, login to view]|1.0|counter

1506377880|60|[url removed, login to view]|24.0|counter

1506378660|60|[url removed, login to view]|11.0|counter

1506378720|60|[url removed, login to view]|1.0|counter

Input #2:

sqlite> select bucket_time, bucket_size, bucket_name, bucket_value, bucket_type from statistics where bucket_name = '[url removed, login to view]' order by bucket_time;

1506376856|0|[url removed, login to view]|20.0|datapoint

1506376913|0|[url removed, login to view]|21|datapoint

1506377880|0|[url removed, login to view]|22|datapoint

1506378835|0|[url removed, login to view]|23|datapoint

I'm looking for an output of:

inputs = [input1, input2]

results = someFunciont(bucket_size=600, inputs)

results would look like:

a = {

'buckets': [

1506376200, 1506376800, 1506377400, 1506378000, 1506378600

],

'values': {

'[url removed, login to view]': [

11.0, 12.0, 36.0, 0.0, 13.0

],

'[url removed, login to view]': [

20, 20.5, 20.5, 22.0, 23.0

],

}

}

Skills: Python, Statistics

See more: constructor in python, python class attributes, python class object, python class init, python class self, python object oriented programming pdf, python class variables, python 2.7 class, scipy python 3, python 3 tutorial for beginners, python 3 online, google app engine python 3, flask python 3, graphics design software for android 2.3 6, get design 3.6 inch

About the Employer:
( 4 reviews ) Rancho Cordova, United States

Project ID: #15262998

Awarded to:

freekotya

Price for implementing functional (discussable) Relevant Skills and Experience Python/Numpy/Pandas Proposed Milestones $50 USD - Implementing desired functional Already implemented functional for ur bucket_size stat More

$50 USD in 3 days
(9 Reviews)
3.0

14 freelancers are bidding on average $142 for this job

liveexperts123

please ignore the bid amount we will discuss the price later in the chat after we have discussed the project thoroughly Relevant Skills and Experience: . Proposed Milestones: 190 - . Hi mrschwenk! please inbox me to di More

$190 USD in 2 days
(9 Reviews)
5.2
$150 USD in 2 days
(13 Reviews)
5.3
vano101

Hello, I have checked requirements and it looks as easy task Relevant Skills and Experience I have some experience with Python and SQLite. Proposed Milestones $37 USD - Payment

$37 USD in 1 day
(77 Reviews)
5.0
IMdaystar

hello,sir How are you? Relevant Skills and Experience Python Proposed Milestones $72.22 USD - as work i want to chat

$72 USD in 3 days
(4 Reviews)
4.5
hanming223

Hello. My name is Han. and I am Python developer you are looking for. Relevant Skills and Experience I have been building many Python script so far. So I can help you perfectly. Best regards. Proposed Milestones $155 More

$155 USD in 3 days
(2 Reviews)
3.6
$244 USD in 3 days
(2 Reviews)
3.0
tracygearth

A proposal has not yet been provided

$125 USD in 3 days
(1 Review)
2.6
$155 USD in 3 days
(3 Reviews)
2.7
jangjinmei728

Hi, there! I'm a new here, freelancer but I can do your job successfully. You can check my project, skills, experience on my profile. Let's discuss in chat about your job detail. Relevant Skills and Experience python More

$222 USD in 7 days
(4 Reviews)
2.3
MyAwesomeTeam

Hi mrschwenk. do you need to be able to compute results on multiple bucket_names and to be able to compute results on multiple bucket_names and to chart ?.I can do this task Our skills same your requireme More

$165 USD in 2 days
(0 Reviews)
0.0
VirtualBrainInc

I have briefly checked the description on website and app designer, and I can deliver as per the requirements however I need us to discuss for more clarity on the details, deadline and budget as well. Relevant Skills More

$110 USD in 2 days
(0 Reviews)
0.0
mattberryhill

Can definitely do this for you. Relevant Skills and Experience python Proposed Milestones $100 USD - Full payment

$100 USD in 3 days
(0 Reviews)
0.0
creativesols3

Hi, i am a full stack mobile & web dev having similar technical skills & experience & have already worked on a similar project before so can do this Ref : [url removed, login to view] Stay tuned, I'm More

$208 USD in 3 days
(0 Reviews)
0.0