PTPA
Not sure if this is allowed if not please delete it
I am a novice in python and was trying to create a script that will parse xlsx data to python and use it to create a yaml file that will be used for ansible purpose.
Im stuck with the following type of excel column:
| Column A |
|:—————:|
| CA.1 | CA.2 |
|:—————:|:—————:|
| VA.1 | VA.2 |
I wanted to put it in a dictionary like for example:
Column A: { ColumnA.1 : ValueA.1 , ColumnA.2 : Value A.2}
So that I could create a yaml file like:
Column A:
- ColumnA.1 : Value A.1
- ColumnA.2 : Value A.2
I would appreciate your input on this one. Thanks