A view that returns some overall interesting stats

params:

start - point of history to start getting data from. will default to 1 year ago

end - point of history to stop getting data from. will default to now

steps - the number of data points to collect. will default to 10

example

http://localhost:8000/api/advanced_stats/?start=2014-11-20&steps=4

to get 4 data points since the end of 2014

GET /api/advanced_stats/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "results": {
        "start": "2018-07-20T09:44:08.474Z",
        "end": "2019-07-20T09:44:08.474Z",
        "data": {
            "avg_user_follows_per_user": [
                1.053502427424948,
                1.0535201505099514,
                1.053506082484423,
                1.053461139384357,
                1.05340045405192,
                1.0533583193608838,
                1.0533136240453314,
                1.0534061823193541,
                1.0533615305168937,
                1.0534231090578463,
                1.0533994890941245
            ],
            "vote_count": [
                1023861,
                1024404,
                1025169,
                1025415,
                1026021,
                1026560,
                1027116,
                1027522,
                1027904,
                1028313,
                1028808
            ],
            "tag_count": [
                722,
                722,
                722,
                722,
                722,
                722,
                723,
                727,
                727,
                727,
                727
            ],
            "question_count": [
                3381,
                3388,
                3389,
                3394,
                3394,
                3394,
                3401,
                3402,
                3402,
                3402,
                3402
            ],
            "avg_tag_follows_per_user": [
                1.4645298721886455,
                1.4648480047529457,
                1.464296310948472,
                1.4639557290379959,
                1.4634290790642581,
                1.4635565637636847,
                1.4643015521064302,
                1.46421539673164,
                1.4638764569910983,
                1.4635572811716715,
                1.4645313421104342
            ],
            "user_retention_for_only_1_month": [
                1,
                2,
                6,
                8,
                4,
                4,
                6,
                2,
                5,
                1
            ],
            "user_count": [
                20186,
                20198,
                20222,
                20239,
                20262,
                20278,
                20295,
                20316,
                20333,
                20347,
                20356
            ],
            "avg_votes_per_user": [
                50.72134152382839,
                50.718090900089116,
                50.6957274255761,
                50.665299668955974,
                50.63769618004146,
                50.62432192523917,
                50.60931263858093,
                50.57698365820043,
                50.553484483352186,
                50.538801788961514,
                50.540774218903515
            ],
            "following_user_count": [
                21266,
                21279,
                21304,
                21321,
                21344,
                21360,
                21377,
                21401,
                21418,
                21434,
                21443
            ],
            "avg_memberships_per_user": [
                1.643812543346874,
                1.6434300425784731,
                1.642715854020374,
                1.6422254063935966,
                1.6416444576053697,
                1.6412861228918039,
                1.6408474993840847,
                1.6402342980901752,
                1.639895735995672,
                1.639455447977589,
                1.639172725486343
            ],
            "avg_questions_per_user": [
                0.16749232141087883,
                0.1677393801366472,
                0.1675897537335575,
                0.16769603241266862,
                0.16750567564899813,
                0.16737350823552619,
                0.16757822123675783,
                0.1674542232722977,
                0.1673142182658732,
                0.16719909568978228,
                0.1671251719394773
            ],
            "following_tag_count": [
                29563,
                29587,
                29611,
                29629,
                29652,
                29678,
                29718,
                29747,
                29765,
                29779,
                29812
            ],
            "group_count": [
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93
            ],
            "group_membership_count": [
                33182,
                33194,
                33219,
                33237,
                33263,
                33282,
                33301,
                33323,
                33344,
                33358,
                33367
            ],
            "user_retention": [
                33,
                33,
                34,
                29,
                21,
                17,
                14,
                8,
                6,
                1
            ]
        }
    }
}