Skip to content

Commit

Permalink
dev: select columns instead of creating
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-nelson-uiuc committed Dec 26, 2024
1 parent c415087 commit b79c63d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tidy_tools/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ def convert(cls, data: DataFrame):
for cls_field in attrs.fields(cls)
}

return data.withColumns(
{cls_field.name: column for cls_field, column in queue.items()}
)
# return data.withColumns(
# {cls_field.name: column for cls_field, column in queue.items()}
# )
return data.select(*(column for column in queue.values()))

@classmethod
def validate(cls, data: DataFrame) -> DataFrame:
Expand Down

0 comments on commit b79c63d

Please sign in to comment.