I have a question: let's say I am using pandas to ...
# hamilton-help
h
I have a question: let's say I am using pandas to organize the data wrangling in a Hamilton's dag. and let's say I have a group of features that share the same theme: time features or financial features. What I want to know is how to organize these features in the dag in a way I can turn on or off some of them and then combine them to the main dataframe later on in the dataframe. How should I handle this situation? what's the best practice here? please let me know if you need more details, thanks
I would appreciate your input @Stefan Krawczyk 🙏 if my question is not clear I can provide more details.
s
@Hassan S how do you want to turn them on or off?
Is it something you want to encode? or is this for developing in a notebook? or?
h
I figured it out Stefan, thanks for your support
Actually it took a few days from me to fully understand the good practice to use hamilton
Initially I was working on the dataframes level but then I realized that I should work on the pandas Series level
s
@Hassan S you have the option of doing both. You might like @with_columns to allow you to switch between both easily