MCPcopy Index your code
hub / github.com/clintecker/python-googleanalytics / DataSet

Class DataSet

src/googleanalytics/data.py:1–20  ·  view source on GitHub ↗

docstring for DataSet

Source from the content-addressed store, hash-verified

1class DataSet(list):
2 """docstring for DataSet"""
3
4 def __init__(self):
5 list.__init__(self)
6
7 @property
8 def list(self):
9 return [[r.dimensions, r.metrics] for r in self]
10
11 @property
12 def tuple(self):
13 return tuple(map(tuple,self.list))
14
15 @property
16 def dict(self):
17 ds = {}
18 for dp in self:
19 ds[dp.dimension] = dp.metric
20 return ds
21
22
23class DataPoint:

Callers 1

get_dataMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected