MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_extract_feature

Method test_extract_feature

tests/test_tsfresh.py:9–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class TestTsFresh(unittest.TestCase):
9 def test_extract_feature(self):
10 ts = pd.DataFrame({
11 'id': np.array(['a', 'a', 'a', 'b', 'b', 'b']),
12 'time': np.array([0,1,2,0,1,2]),
13 'x': np.array([3,4,5,7,8,10])
14 })
15 extracted_features = extract_features(ts, column_id='id', column_sort='time', n_jobs=1)
16 self.assertEqual(2, len(extracted_features))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected