Ben09/02/2022, 5:19 PM
? (i.e. to get multiple columns back from a parameterized function) I can't wrap my head around how it would work, if it is.
Stefan Krawczyk09/02/2022, 5:22 PM
Ben09/02/2022, 5:25 PM
(as an expanded dict comprehension), ideally I could just specify multiple output columns there.
Stefan Krawczyk09/02/2022, 5:30 PM
is just syntactic sugar for:
Which I think (would need to write some code to prove this to myself) you could write as a separate parametrize function itself, rather than sticking it all into one parameterize function.
def column_a(my_df: pd.Dataframe) -> pd.Series: return my_df['column_a'] def column_b(my_df: pd.Dataframe) -> pd.Series: return my_df['column_b']
Elijah Ben Izzy09/02/2022, 5:36 PM
decorator — allows for both values and inputs :)
Ben09/02/2022, 6:16 PM
, it's great -- although the docs are a little confusing still, they talk about
initially and then about
, are they the same things? Or is upstream/literal an old way of writing it?)
Elijah Ben Izzy09/02/2022, 6:27 PM
Stefan Krawczyk09/02/2022, 6:27 PM
(I’m already using what @Elijah Ben Izzy said [/edit]. If you have time please feel free to create an issue for this — else I’ll try to get to this in the afternoon, if not early next week., it’s great -- although the docs are a little confusing still, they talk about
source()initially and then about
upstream(), are they the same things? Or is upstream/literal an old way of writing it?
Elijah Ben Izzy09/02/2022, 6:29 PM
Stefan Krawczyk09/02/2022, 10:49 PM
Elijah Ben Izzy09/03/2022, 2:58 AM
Michael Cunningham11/08/2022, 5:29 PM
Elijah Ben Izzy11/08/2022, 7:57 PM
Michael Cunningham11/08/2022, 8:10 PM
with a function that outputs a DataFrame and then unique functions to then extract the columns (there is a good example with in the issue that shows this with the my_disaggregator functions with
Elijah Ben Izzy11/18/2022, 12:55 AM