I have a programming challenge that I can't overcome, please help! I have historical time series rates and dates stored as a string in one cell for each security (10K+ security). How can I split the string and store the information in their respective columns? I usually work in R but happy to try it in Python if easier!
Here is what my data looks like, "Security" and "Series" are my column names:
+----+---+---+---+---+---+---+---+---+---+---+---+---+---+--+---+---+----+
| Security | Series |
+----+---+---+---+---+---+---+---+---+---+---+---+---+---+--+---+---+----+
| 567895B | "3/15/2019 2.51 3/17/2019 2.30 4/08/2019 2.41" |
| 165456C | "1/05/2018 2.45 1/28/2018 2.46" |
| 123456A | "1/05/2016 2.45 2/05/2016 2.46 3/05/2016 2.45 5/05/2016 2.47"|
+----+---+---+---+---+---+---+---+---+---+---+---+---+---+--+---+---+----+
Here is what I want it to look like:
+----+-------+-------+---------+------+
| Security | date | rate |
+----+-------+-------+---------+------+
| 567895B | 3/15/2019 | 2.51 |
| 567895B | 3/17/2019 | 2.30 |
| 567895B | 4/08/2019 | 2.41 |
| 165456C | 1/05/2018 | 2.45 |
| 165456C | 1/28/2018 | 2.46 |
| 123456A | 1/05/2016 | 2.45 |
| 123456A | 2/05/2016 | 2.46 |
| 123456A | 3/05/2016 | 2.45 |
| 123456A | 5/05/2016 | 2.47 |
+----+-------+-------+---------+------+