Fill grouping variable pandas dataframe
Fill grouping variable pandas dataframe Question: I have a pandas dataframe with an id column called doc_ID and a boolean column that reports if a certain value is below a threshold, like so: df = pd.DataFrame({‘doc_ID’: [1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, …