def nbytes(o):
    name = type(o).__module__ + '.' + type(o).__name__

    if name == 'pandas.core.series.Series':
        return _array(o._data.blocks[0].values) + _array(o.index._data)
    elif name == 'pandas.core.frame.DataFrame':
        return _array(o.index) + sum([_array(blk.values)
                                     for blk in o._data.blocks])
    elif name == 'numpy.ndarray':
        return _array(o)
    elif hasattr(o, 'nbytes'):
        return o.nbytes
    else:
        return sys.getsizeof(o)
Decorator that disables any cache for view
dataset/ETHPy150Open blaze/cachey/cachey/nbytes.py/nbytes--crossover with--dataset/ETHPy150Open ipeirotis/Mturk-Tracker/app/mturk/main/admin.py/no_cache