I have two Id columns in my df which are split into either a Id or NaN.
| Date | ... | ID | ID |
|---|---|---|---|
| 12/12/2019 | ... | DE1253 | NaN |
| 12/12/2018 | ... | eg562r | NaN |
| 12/12/2021 | ... | gse233 | NaN |
| 12/12/2019 | ... | NaN | wefg32 |
| 12/11/2010 | ... | NaN | rte422 |
| 12/10/2021 | ... | NaN | 3fdes4 |
How can I combine these two fields into one ignores the NaN so that there the desired output is
| Date | ... | ID |
|---|---|---|
| 12/12/2019 | ... | DE1253 |
| 12/12/2018 | ... | eg562r |
| 12/12/2021 | ... | gse233 |
| 12/12/2019 | ... | wefg32 |
| 12/11/2010 | ... | rte422 |
| 12/10/2021 | ... | 3fdes4 |
Any help would be much appreciated thanks