Pandas newbie here so this may be a fairly basic and easy question.
I want to combine the data from one index in one DataFrame into a different index in a different DataFrame.
In the below example, I've split the data into a DataFrame of verified indexes (MainTable) and a DataFrame of erroneous indexes (ErrorTable).
After manually reviewing the erroneous entries in ErrorTable, I want to be able merge the data from ErrorTable's 'Cta' and 'Mice' entries into MainTable's 'Cat' and 'Mouse' entries.
import pandas as pd
RawData = pd.DataFrame({'Number sighted today':[4, 3, 1, 2, 8, 3],
'Number sighted yesterday':[5, 1, 0, 2, 1, 0]},
index = ['Dog', 'Cat', 'Cta', 'Mouse', 'Ant', 'Mice'])
AllowedIndexes = ['Dog','Cat','Mouse','Ant']
MainTable = RawData[RawData.index.isin(AllowedIndexes) == True]
ErrorTable = RawData[RawData.index.isin(AllowedIndexes) == False]
I have tried:
MainTable.loc['Cat'] = MainTable.loc['Cat'] + ErrorTable.loc['Cta']
MainTable.loc['Mouse'] = MainTable.loc['Mouse'] + ErrorTable.loc['Mice']
And while it technically works, it keeps throwing up a warning message that I'm doing something wrong which I haven't been unable to understand, so I figure there must be a more stable way to do this.
Thanks!

