MCPcopy
hub / github.com/pathwaycom/pathway / test_strip

Function test_strip

python/pathway/tests/expressions/test_string.py:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def test_strip():
12 t = table_from_pandas(
13 pd.DataFrame({"a": [" abc", " def ", "ab cd ", "xy zt", "zy "]})
14 )
15 expected = table_from_pandas(
16 pd.DataFrame({"a": ["abc", "def", "ab cd", "xy zt", "zy"]})
17 )
18 result = t.select(a=pw.this.a.str.strip())
19 assert_table_equality(result, expected)
20
21
22def test_count():

Callers

nothing calls this directly

Calls 3

table_from_pandasFunction · 0.90
stripMethod · 0.80
selectMethod · 0.45

Tested by

no test coverage detected