MCPcopy
hub / github.com/feast-dev/feast / simple_dataset_1

Function simple_dataset_1

sdk/python/tests/conftest.py:149–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147
148@pytest.fixture
149def simple_dataset_1() -> pd.DataFrame:
150 now = _utc_now()
151 ts = pd.Timestamp(now).round("ms")
152 data = {
153 "id_join_key": [1, 2, 1, 3, 3],
154 "float_col": [0.1, 0.2, 0.3, 4, 5],
155 "int64_col": [1, 2, 3, 4, 5],
156 "string_col": ["a", "b", "c", "d", "e"],
157 "ts_1": [
158 ts,
159 ts - timedelta(hours=4),
160 ts - timedelta(hours=3),
161 ts - timedelta(hours=2),
162 ts - timedelta(hours=1),
163 ],
164 }
165 return pd.DataFrame.from_dict(data)
166
167
168@pytest.fixture

Callers

nothing calls this directly

Calls 2

_utc_nowFunction · 0.90
from_dictMethod · 0.45

Tested by

no test coverage detected