Fix: Clean weightedDataset from flatten_list
This commit is contained in:
parent
1d9aefd9e3
commit
aeb8fa4321
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user