I have two lists and the first one is having additional data (102) when compared to the second one.
First List:
['102 1 1 v-csm CSM vCSM enabled active up D:042 H:20 M:14 S:58 5.4.4.4-68.REL']
Second List:
['2 1 v-csm CSM vCSM enabled active up D:331 H:12 M:20 S:33 5.4.4.4-68.REL']
I want to insert a string like "xyz" at the first position of the list so that using pandas data can be mapped to correct columns.
Let's say that the second list is called array.
You can use array.insert(0, "xyz") or array = ["xyz"] + array to add "xyz" to the beginning of the second list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With