I'm looking for a way to run a two conditional pandas DataFrame groupby method. I have many logs to parse and I have the following single condition groupby method, but is there a way to have a two conditional groupby method?
DF[DF['Feature Enabled'] == 1].groupby([’Feature Active'])[['Value1','Value2']].mean()
Is there a way to print a running groupby for the current log as I go through each file, something like...
DF[DF['Iteration'] == CURRENTLOG_ID and DF['Feature Enabled'] == 1].groupby([’Feature Active'])[['Value1','Value2']].mean()
This would help me plot into Excel after each log as I go along and process a directory of logs.
Thanks