def median(iterable, sort=True):
    s = sorted(iterable) if sort is True else list(iterable)
    n = len(s)
    if n == 0:
        raise ValueError("median() arg is an empty sequence")
    if n % 2 == 0:
        return float(s[(n // 2) - 1] + s[n // 2]) / 2
    return s[n // 2]
Given the parquet_file and csv_file representation, converts the
dataset/ETHPy150Open clips/pattern/pattern/metrics.py/median--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/parquet-python/test/test_read_support.py/TestCompatibility._test_file_csv