I have one time series df containing various stock market data (i.e. date, symbol, open, close..ect) and another with metadata containing the symbol and name of the stock.
I would like to create a new column in the df with the stocks name using the symbol as a match. How would I go about this?
I've tried using pd.merge based on symbol, but the resulting column was populated with Nan's.
Df:
| Date | Open | Close | Symbol | 
|---|---|---|---|
| 06/18 | 4.80 | 4.79 | SPXB | 
Names df:
| Name | Symbol | 
|---|---|
| Ace | SPXB | 
And what I would like is:
| Date | Open | Close | Symbol | Name | 
|---|---|---|---|---|
| 06/18 | 4.80 | 4.79 | SPXB | Ace | 
 
    