A rise column is added to the table. 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]}); df["rise"] = df["ie"].diff(); print(list(df[df["rise"] > 140]["sym"]))
Log in to join the discussion.
Loading…