Slackbot
11/04/2023, 9:11 PMElijah Ben Izzy
11/04/2023, 10:24 PM# you could use @inject to inject them in a group for **kwargs if you don't want to type them out as parameters
def final_df(
prefix: str="XYZ",
col_1: pd.Series,
col_2: pd.Series,
...
) -> pd.DataFrame:
return pd.DataFrame(...) # join the above ones
3. You can do a lot of fancy stuff with other decorators if you’re interested — @parameterize
can be conditionally included in certain ways, but I’d argue that this is generally going to make things a little messier (everyone has a different preference here…)miek
11/04/2023, 11:28 PMElijah Ben Izzy
11/04/2023, 11:29 PM