Can you please help me understand how I can do a create a separate column in a dataframe and store the value based on a COUNTIFS result.
I am having three columns currently in the dataframe Column 1 - Name of the Employee Column 2 - Name of the Manager (Can get repeated) Column 3 - Whether the employee is a Male / Female
I want to add a fourth column where I want to show the number of male employees corresponding to the Manager in Column 2.
I am still trying to learn how to append a table in Stackoverflow. So please excuse my lengthy query.