-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Overview
See this failing test:
def test_step_table_pivot():
source = Resource("data/transform-pivot.csv")
pipeline = Pipeline(
steps=[
steps.table_normalize(),
steps.table_pivot(f1="region", f2="gender", f3="units", aggfun=sum),
],
)
target = source.transform(pipeline)
assert target.schema.to_descriptor() == {
"fields": [
{"name": "region", "type": "string"},
{"name": "boy", "type": "integer"},
{"name": "girl", "type": "integer"},
]
}
assert target.read_rows() == [
{"region": "east", "boy": 33, "girl": 29},
{"region": "west", "boy": 35, "girl": 23},
]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done