Form Validation Using Regex In Python Dataframe Groupby