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