Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
Implements parameterize_extract_columns + a dataframe API
Browse files Browse the repository at this point in the history
This provides a convenience API for
#196. The idea is that
people want to do a parameterization and extract columns operator at
once -- this should be easy. The cool thing is that this just uses the
parameterize and extract APIs. It also has a from_df() function to allow
for passing in a dataframe to be more concise.
  • Loading branch information
elijahbenizzy committed Dec 22, 2022
1 parent 86f9ac1 commit 6dce30b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hamilton/function_modifiers/expanders.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ def dict_generator(*args, **kwargs):
return dict_generated

output_nodes = [node_.copy_with(callabl=dict_generator)]

for field, field_type in self.fields.items():
doc_string = base_doc # default doc string of base function.

Expand Down

0 comments on commit 6dce30b

Please sign in to comment.