コード例 #1
0
def test_dataframe_nbytes():
    try:
        import pandas as pd
        df = pd.DataFrame({'a': [1] * 10000})
        assert nbytes(df) > 10000
    except ImportError:
        pass
コード例 #2
0
ファイル: test_core.py プロジェクト: quantopian/chest
def test_dataframe_nbytes():
    try:
        import pandas as pd
        df = pd.DataFrame({'a': [1]*10000})
        assert nbytes(df) > 10000
    except ImportError:
        pass
コード例 #3
0
def test_nbytes():
    assert isinstance(nbytes('x'), int)
    assert nbytes('x') < 100
    assert nbytes(np.ones(1000, dtype='i4')) >= 4000
コード例 #4
0
ファイル: test_core.py プロジェクト: quantopian/chest
def test_nbytes():
    assert isinstance(nbytes('x'), int)
    assert nbytes('x') < 100
    assert nbytes(np.ones(1000, dtype='i4')) >= 4000
コード例 #5
0
ファイル: test_core.py プロジェクト: numb3r3/chest
def test_nbytes():
    assert isinstance(nbytes("x"), int)
    assert nbytes("x") < 100
    assert nbytes(np.ones(1000, dtype="i4")) >= 4000