I\'ve created a Pandas DataFrame
df = DataFrame(index=[\'A\',\'B\',\'C\'], columns=[\'x\',\'y\'])
and got this
x y
A NaN
You can also use a conditional lookup using .loc as seen here:
df.loc[df[] == , []] =
where variable against and is the column you want to add to (can be a new column or one that already exists). is the value you want to add to that column/row.
This example doesn't work precisely with the question at hand, but it might be useful for someone wants to add a specific value based on a condition.