Example #1
0
def test_dataframe_nbytes():
    try:
        import pandas as pd
        df = pd.DataFrame({'a': [1] * 10000})
        assert nbytes(df) > 10000
    except ImportError:
        pass
Example #2
0
def test_dataframe_nbytes():
    try:
        import pandas as pd
        df = pd.DataFrame({'a': [1]*10000})
        assert nbytes(df) > 10000
    except ImportError:
        pass
Example #3
0
def test_nbytes():
    assert isinstance(nbytes('x'), int)
    assert nbytes('x') < 100
    assert nbytes(np.ones(1000, dtype='i4')) >= 4000
Example #4
0
def test_nbytes():
    assert isinstance(nbytes('x'), int)
    assert nbytes('x') < 100
    assert nbytes(np.ones(1000, dtype='i4')) >= 4000
Example #5
0
def test_nbytes():
    assert isinstance(nbytes("x"), int)
    assert nbytes("x") < 100
    assert nbytes(np.ones(1000, dtype="i4")) >= 4000