예제 #1
0
def test_clean_datetimes_return_df():
    pts = leiap.get_points_simple()
    df = leiap.clean_datetimes(pts)
    assert isinstance(df, pd.DataFrame)
예제 #2
0
def test_clean_datetimes_columns():
    """Must have 'dt_adj' column"""
    pts = leiap.get_points_simple()
    cols = leiap.clean_datetimes(pts).columns.tolist()
    assert 'dt_adj' in cols
예제 #3
0
파일: test_io.py 프로젝트: deppen8/leiap
def test_load_points_simple_length():
    """Row length should be greater than 0"""
    df = leiap.get_points_simple()
    assert df.shape[0] > 0
예제 #4
0
def test_clean_datetimes_length():
    """Row length should be greater than 0"""
    pts = leiap.get_points_simple()
    df = leiap.clean_datetimes(pts)
    assert df.shape[0] > 0
예제 #5
0
파일: test_io.py 프로젝트: deppen8/leiap
def test_load_points_simple_return_df():
    df = leiap.get_points_simple()
    assert isinstance(df, pd.DataFrame)