pandas groupby col
Published on Aug. 22, 2023, 12:11 p.m.
l = [[1, 2, 3], [1, None, 4], [2, 1, 3], [1, 2, 2]]
df = pd.DataFrame(l, columns=["a", "b", "c"])
df.groupby(by=["b"])
参考链接
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.groupby.html