默认 · 4月 21, 2022 0

pandas groupby col

内容纲要

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 博主赞过: