You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
399 B
19 lines
399 B
1 year ago
|
import numpy as np
|
||
|
import pytest
|
||
|
|
||
|
from pandas import DataFrame
|
||
|
|
||
|
|
||
|
@pytest.fixture
|
||
|
def int_frame_const_col():
|
||
|
"""
|
||
|
Fixture for DataFrame of ints which are constant per column
|
||
|
|
||
|
Columns are ['A', 'B', 'C'], with values (per column): [1, 2, 3]
|
||
|
"""
|
||
|
df = DataFrame(
|
||
|
np.tile(np.arange(3, dtype="int64"), 6).reshape(6, -1) + 1,
|
||
|
columns=["A", "B", "C"],
|
||
|
)
|
||
|
return df
|