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