Code has been added to clipboard!
Simple Dataset for Pandas Groupby
Example
import pandas as pd
import numpy as np
df = pd.DataFrame( {
"Employee" : ["Susan", "Kevin", "Charles", "David", "Ben"] ,
"Salary" : [60000, 35000, 31000, 10000, 20000] ,
"Year" : [2019, 2019, 2019, 2019, 2019]} )
df