Machine Learning, Deep Learning, AI, Pandas, Data Analysis.
float64 df.groupby('Wteam')['Wloc'].value_counts().head(9) Out: Wteam Wloc 1101 H 12 A 3 N 3 1102 H 204 A 73 N 32 1103 H 324 A 153 N 41 Name: Wloc, dtype: int64 df.values Out: array([[1985, 20, 1228, ..., 64, 'N', 0], [1985, 25, 1106, ..., 70, 'H', 0], [1985, 25, 1112, ..., 56, 'H', 0], ..., [2016,