The table is grouped by block. What does this print? import pandas as pd; df = pd.DataFrame({"sym": ["Rb", "Sr", "In", "Sn", "I"], "block": ["s", "s", "p", "p", "p"], "ie": [403, 549, 558, 709, 1008]}); print(df.groupby("block").size()["p"])
Log in to join the discussion.
Loading…