I have 2 datasets, which contain unique values. The first one, which is the one below has the full name of a few hospitals.
+-----------------------+
| HOSPITAL_NAME_FULL |
+-----------------------+
| St. Christine |
| Californian Hospital |
| Holy Mercy Hospital |
| Germanic NW Hospital |
| Trauma Center Hospital|
| Holy Spirit Hospital |
| Mater Hospital |
+-----------------------+
The other one has the short name of the same hospitals above.
+---------------------+
| HOSPITAL_NAME_SHORT |
+---------------------+
| Christine |
| Californian |
| Mercy |
| Germanic |
| Trauma |
| Holy |
| Mater |
+---------------------+
The thing is, I need to join them, so I can have both full name and short name. Can I join dataframes while using some kind of regex so I can have this result?
+-----------------------+---------------------+
| HOSPITAL_NAME_FULL | HOSPITAL_NAME_SHORT |
+-----------------------+---------------------+
| St. Christine | Christine |
| Californian Hospital | Californian |
| Holy Mercy Hospital | Mercy |
| Germanic NW Hospital | Germanic |
| Trauma Center Hospital| Trauma |
| Holy Spirit Hospital | Holy |
| Mater Hospital | Mater |
+-----------------------+---------------------+
Thanks!