Skip to content
RED SAGSkills
hard20 pts · first answer countspythonpandas

Assigning a Series with a different index

What is in df["s"] after this code?

df = pd.DataFrame({"v": [1, 2, 3]}, index=[0, 1, 2])
s = pd.Series([10, 20, 30], index=[1, 2, 3])
df["s"] = s
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions