Slackbot
06/05/2023, 7:43 PMStefan Krawczyk
06/05/2023, 7:46 PM@extract_columns("a column foo", ...)
def my_df(...) -> pd.DataFrame:
return ...
In short: no.
Why? Hamilton requires that everything needs to be a valid python variable name. E.g. you can’t have a function with a parameter name that includes whitespace that would depend on that column, because python doesn’t allow whitespace in a parameter names.
E.g. this isn’t valid python code:
def a_transform(a column foo: pd.Series) -> ...
James Marvin
06/05/2023, 7:46 PM