I have a table. Eg
Here is a simple table
that I want to convert to excel or csv format.
If it is csv, it should look like this
Note that Mon and Math is repeated twice as they occupied rowspan=2
We may have a file that has up to rowspan=4