默认 · April 21, 2022 0

pandas groupby col

Table of Content

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

%d bloggers like this: