What does this program print? df = pd.DataFrame({"k": ["a", "b", "a", "b"], "v": [1, 2, 3, 4]}); print(df.groupby("k")["v"].sum().tolist())
Log in to join the discussion.
Loading…