I have a `txt` file that contains a list of errorIDs, and a dataframe that has all the IDs.. I want to consolidate this list. For example, lets say I have a dataframe (df1) that looks like this:

```
id  value
a1  foo
a2  fo
a3  fi
a4  fum
a5  fe

```

and a error dataframe (df2) that is being read from a txt, and using `to_csv`, i get

```
error_id
a1
a4
a5

```

I want to run something like:

```
merged = df1.merge(df2, left_on='id', right_on='error_id')

```

in order to achieve a final outcome of:

```
id  value
a2  fo
a3  fi

```