Question: I have two data frames:

```
  customer material Freq
1  1       12       1
2  1       10       1
3  1        8       1
4  1        4       1
5  1        3       1
6  1        2       1

```

and the second one:

```
  material class
1 12       A
2 10       B
3 3        C
4 4        D
5 5        E
6 6        F

```

Now I want to merge the two data frames. I tried it with:

```
e <- left_join(A, B, by="material")

```

But then I have all materials multiple times. How can I solve this problem?

Answer: 
Can you try adding the plugin in your build.gradle (app) file

```
apply plugin: 'kotlin-kapt'

```
Write the following code in the model class

```
 companion object DataBindingAdapter {
        @BindingAdapter("bind:image_url")
        @JvmStatic
        fun loadImage(imageView: ImageView, image_url: String) {
            Picasso.get().load(image_url).fit()
                    .placeholder(R.mipmap.ic_launcher)
                    .error(R.mipmap.ic_launcher)        
                    .into(imageView)        }
    }

```

In XML write the following code

```
<ImageView
            android:id="@+id/movie_image"
            android:layout_width="100dp"
            android:layout_height="100dp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.027"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:image_url="@{movieList.component5()}"/>

```