Fix: Clean weightedDataset from flatten_list

This commit is contained in:
Bertrand Benjamin 2019-06-28 10:37:59 +02:00
parent 1d9aefd9e3
commit aeb8fa4321
1 changed files with 7 additions and 6 deletions

View File

@ -1,18 +1,19 @@
#/usr/bin/env python
# -*- coding:Utf-8 -*-
#
#
# Ensemble de fonction rendant beaucoup plus pratique la résolution et l'élaboration des exercices de stat au lycée
#
#
"""
Statistical tools which should ease statistical exercises creation
"""
from math import sqrt, ceil
from collections import Counter
from .dataset import Dataset
from ..calculus.generic import flatten_list
from itertools import chain
from .number_tools import number_factory
def flatten_list(l):
return list(chain(*l))
class WeightedDataset(dict):
""" A weighted dataset with statistics and latex rendering methods